Trying to get all samples from an audio file on disk into memory
Trying to get all samples from an audio file on disk into memory
- Subject: Trying to get all samples from an audio file on disk into memory
- From: "Patrick J. Collins" <email@hidden>
- Date: Sat, 28 Feb 2015 18:59:04 -0800 (PST)
Hi everyone,
I am working on a DSP project where I have already implemented code that
allows me to supply a buffer of samples, and it will output them to the
device speaker.
The next thing I need to do now is read in all the samples from an AIF
file into memory so that I can perform various operations on them... I
am using the "Learning Core Audio" book as a reference, and the
author's example for reading an audio file and playing it makes use of an
AudioQueue, which I don't think I need to use...
My question is, what is the easiest way to create a buffer large enough
to hold all of the samples in an AIF file and read those samples into
that buffer?
Thanks.
Patrick J. Collins
http://collinatorstudios.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden