Re: Trying to get all samples from an audio file on disk into memory
Re: Trying to get all samples from an audio file on disk into memory
- Subject: Re: Trying to get all samples from an audio file on disk into memory
- From: Paul Davis <email@hidden>
- Date: Sat, 28 Feb 2015 21:17:00 -0600
Then what is the problem?
typedef float Sample;
Sample* buf = new Sample[sizeof(Sample) * file_length]; /* C++ */
buf = (Sample*) malloc (sizeof (Sample) * file_length); /* C */
either you want to use some new-fangled language and don't know how to do heap allocation or do you don't understand how to get the number of samples in the file?
_______________________________________________
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