0

i m referring the example in the http://devnulldb.blogspot.in/2012/07/how-to-set-up-openal-and-play-sound.html

can anyone help me please

UInt32 bytesRead = (UInt32)fileSizeInBytes;
void* audioData = malloc(bytesRead);



OSStatus readBytesResult = AudioFileReadBytes(afid, false, 0, &bytesRead, audioData);

// "here I'm getting the value of readBytesResult -39"

if (0 != readBytesResult) {
    NSLog(@"An error occurred when attempting to read data from audio file %@: %ld", _url, readBytesResult);
}
Mitesh Varu
  • 246
  • 1
  • 14
  • You got a `kAudioFileEndOfFileError` error: http://stackoverflow.com/questions/2948741/audiofilereadbytes-error ? – Larme Aug 02 '16 at 08:52
  • that page does not have any solution of that particular problem can you help me to get out of this problem ??? – Mitesh Varu Aug 03 '16 at 05:29

0 Answers0