spessasynth_lib 3.11.2 → 3.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @typedef {Object} WaveMetadata
3
+ * @property {string} title - the song's title
4
+ * @property {string} album - the song's album
5
+ * @property {string} genre - the song's genre
6
+ */
7
+
1
8
  /**
2
9
  *
3
10
  * @param audioBuffer {AudioBuffer}
@@ -7,7 +14,7 @@
7
14
  */
8
15
  export function audioBufferToWav(audioBuffer, normalizeAudio = true, channelOffset = 0)
9
16
  {
10
-
17
+ // this code currently doesn't add any metadata
11
18
  const channel1Data = audioBuffer.getChannelData(channelOffset);
12
19
  const channel2Data = audioBuffer.getChannelData(channelOffset + 1);
13
20
  const length = channel1Data.length;