Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing audio samples from an arbitrary file

Status
Not open for further replies.

waterhorse

Programmer
May 7, 2003
1
GB
I'm developing a widget to display and edit sounds and various other time-based things in Mac OS X, and I was hoping that I could use quicktime to support arbitrary sound file formats. Having spent the last couple of days poring over the documentation, I still don't know if I can do what I want, so I thought I'd ask (I have never used a single QT API call in the whole of my life so far).

My code works with sampled sound at arbitrary bit rates and sample sizes, but as it stands the only input format I support is WAV. What I'd like to do is take a file and have quicktime open it and extract the audio content in the form of uncompressed samples.

I realize it's possible to convert a file from a supported format to a wav file (not that I even know how to do that yet), but what I'd really like would be to tell the qt api, "give me some random chunk of this audio track as an array of samples in some standard format that doesn't depend on the source file."

Is this possible? How involved would it be to code?

Any advice would be much appreciated!

-Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top