I've got some code based on Apple "SoundPlayer" sample code that uses
SoundConverterFillBuffer to extract the sound track from a movie and
convert it to a new format. It works fine on the Mac, but on Windows
I just get white noise. Any ideas? I've tried setting the output
format to k16BitBigEndianFormat as well as kSoundNotCompressed. It
seems to be walking through the input stream properly (using
GetMediaSample), and putting something in the output buffer, just not
right. Also, the audio is fine playing direct to output from
MediaController so my basic QT set-up is correct.
I thought I would tinker with the "SoundPlayer.win" sample code for
Windows, but I can't get that project to build in VC++. Anybody know
the trick there?
Thanks.
Tim - 29 Oct 2004 04:40 GMT
> I just get white noise. Any ideas? I've tried setting the output
> format to k16BitBigEndianFormat as well as kSoundNotCompressed. It
To answer my own question: use format k16BitLittleEndianFormat, and
it works wonderfully. I've been sending data back and forth between
different platforms for 10+ years now, and I STILL cannot keep that
"Endian" terminology straight.