我试图改变我录制的音高但是在readBytesResult中得到错误

时间:2016-08-02 08:49:39

标签: objective-c caf pitch-shifting

我在http://devnulldb.blogspot.in/2012/07/how-to-set-up-openal-and-play-sound.html

中引用了这个例子

任何人都可以帮助我

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);
}

0 个答案:

没有答案