Re: Reading bytes from an audio file
Re: Reading bytes from an audio file
- Subject: Re: Reading bytes from an audio file
- From: B&L <email@hidden>
- Date: Tue, 23 Sep 2003 20:06:15 +0200
Thanks for all the replies.
The error was a simple typo!!! I tried to read my audio data into an
uninitialized pointer instead of the one that pointed to the allocated memory.
Thanks again
Brian
At 23:15 22-09-2003 +0200, B&L wrote:
Hello
I am trying to load the audio bytes from a WAV file.
I am doing this by first reading the size property of the audio file using
the function AudioFileGetProperty().
Using this size I try to read the audio bytes using the function
AudioFileReadBytes, into an array of the same size, which is allocated
through malloc(sizeof(char) * theAudioDataSize).
This keeps giving an kAudioFileUnspecifiedError! If I just try to read in
1024 bytes there is no error!
Anybody out there who knows if and what I am doing wrong?
The functions and error codes are all declared in the header file AudioFile.h.
Thanks
Brian
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.