Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-30-2009, 11:50 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 96
Default AudioQueue framework : Reference problem

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.
blueFLoyd8 is offline   Reply With Quote
Old 04-01-2009, 11:05 AM   #2 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 2
Default Add Framework

I had the same error. I got mine fixed by adding the AudioToolbox Framework to my project through the project browser in xCode. My code doesn't work, but at least it compiles now without that reference error.

Quote:
Originally Posted by blueFLoyd8 View Post
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.
rsn1975 is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, audio queue, music

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 261
23 members and 238 guests
ADY, AragornSG, bookesp, chillyh, dacapo, Dani77, Davey555, Desert Diva, Dominus, glenn_sayers, HemiMG, JasonR, LEARN2MAKE, M.A.S., marshusensei, mer10, nobre84, Oral B, prchn4christ, Raggou, Rudy, themathminister
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:31 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0