Good day,I am trying to write an audio player (which seems to be harder than it should be) and I am using some code that I found on this forum. When I compile, I get an error for every method that I call form the AudioQueue.h library. For example:
Code:
#import <AudioToolbox/AudioQueue.h>
#import <AudioToolbox/AudioFileStream.h>
Code:
- (void)enqueueBuffer
{
OSStatus err = noErr;
inuse[fillBufferIndex] = true;
AudioQueueBufferRef fillBuf = audioQueueBuffer[fillBufferIndex];
fillBuf->mAudioDataByteSize = bytesFilled;
err = AudioQueueEnqueueBuffer(audioQueue, fillBuf, packetsFilled, packetDescs);
if (err) NSLog(@"AudioQueueEnqueueBuffer failed");
I am getting a total of 10 errors, but they are all like this one, but for each of the different methods that I call from the AudioQueue.h library. The error says:
"_AudioQueueEnqueueBuffer", referenced from:
Anybody have an idea how to fix this? I can provide more code if needed.