×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Accessing audio samples from an arbitrary file

Accessing audio samples from an arbitrary file

Accessing audio samples from an arbitrary file

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close