Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / October 2004



Tip: Looking for answers? Try searching our database.

SoundConverterFillBuffer on Windows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim - 28 Oct 2004 21:05 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.