New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Core Audio AudioQueueEnqueueBufferWithParameters

Post Reply New Thread Subscribe

Thread Tools

Member Since: Jul 31, 2008
Posts: 2
nacho4d is on a distinguished road

nacho4d is offline
(I have to say that I am quite new to Core Audio.)
I am trying to use AudioQueueEnqueueBufferWithParameters function so I can enqueue buffers corresponding a certain time, like song navigation.
(suppose a have a GUI time line, (for example UISlider) and I want to be able to go to any audio's position in time, so I can enqueue the corresponding buffers to that time and enqueue them to be played -> As far as I understand this can be accomplished by using AudioQueueEnqueueBufferWithParameters)

For example in iPhone speakHere project > AudioPlayer.m > playbackCall function
there is

AudioQueueEnqueueBuffer (
			([ player packetDescriptions ] ? numPackets : 0),
			[ player packetDescriptions ]
but I want to have more control so I would use

UInt32 inTrimFramesAtStart, inTrimFramesAtEnd;
AudioQueueTimelineRef myOutTimeline; 
AudioQueueCreateTimeline(inAudioQueue, &myOutTimeline); //is this correct?

			([player packetDescriptions] ? numPackets : 0),
			[player packetDescriptions],
                        inTrimFramesAtStart,  //???????
                        inTrimFramesAtEnd,    //???????
                        0,  //since I am not passing any parameter
                        NULL,  //since I am not setting any parameter
                        NULL,  //ASAP
                        &myOuTimeline, //something tells me that is not good

As you can see this function's parameters are incomplete.
I have read the documentation but I still cannot get what the heck put inside inTrimFramesAtStart and inTrimFramesAtEnd and &myOutTimeline

Can any one explain me kindly? I would be very pleased.
Thanks in advance.
QUOTE Thanks

Member Since: Oct 30, 2008
Posts: 1
bearc0025 is on a distinguished road

bearc0025 is offline

I'm working on a similar problem. Did you find a solution? If so, any links, references, etc. wd be appreciated.

QUOTE Thanks

Post Reply New Thread Subscribe

« Question about programming languages | Help with gcc »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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 Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Core Duo --> Core 2 Duo Flash Fire Apple Notebooks 4 03-24-2012 11:12 AM
leopard and core audio help!!!!!!!!!! stay where i ca OS X - Operating System 1 11-07-2007 04:43 PM
DIY: Trick out your Intel Mini kaidomac Apple Desktops 53 02-17-2007 02:40 AM
Core Solo or Duo Pierre Apple Notebooks 5 04-21-2006 11:47 AM

All times are GMT -4. The time now is 10:08 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?