waterhorse
Programmer
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
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