02-19-2023, 05:31 PM
Ok then write me how to get the audio data for the right channel. Also try to play the acquired music data for the left channel. It caused the program to crash. Don't tell me you've made changes to MemSound that would cause incompatibility. I couldn't find any such change on Wiki.
then try this:
It's entirely possible that I've missed something, so I'll ask you for a valid link to a real working use of memsound. Thank you.
In the attached screenshot, look at the numeric values returned. Even if you got it right, I absolutely do not understand the difference between the correctly calculated expected data size and what it returns for the left channel. And try playing the audio for the left channel.
then try this:
Code: (Select All)
$NoPrefix
s = SndOpen("0.mp3")
Dim As MEM l, r
Dim done As Long, m As Integer
l = MemSound(s, 1)
Do Until done = l.SIZE
MemGet l, l.OFFSET + done, m
done = done + 2
SndRaw m / 32768
Loop
It's entirely possible that I've missed something, so I'll ask you for a valid link to a real working use of memsound. Thank you.
In the attached screenshot, look at the numeric values returned. Even if you got it right, I absolutely do not understand the difference between the correctly calculated expected data size and what it returns for the left channel. And try playing the audio for the left channel.