Song Navigation with AudioQueueEnqueueBufferWithParameters
Song Navigation with AudioQueueEnqueueBufferWithParameters
- Subject: Song Navigation with AudioQueueEnqueueBufferWithParameters
- From: "Ignacio Enriquez" <email@hidden>
- Date: Sat, 11 Oct 2008 16:36:01 +0900
Hi everyone.
(I have to say that I am quite new to Core Audio. and new to this list also)
I am trying to use AudioQueueEnqueueBufferWithParameters function so I
can enqueue buffers corresponding a certain time. In other words, 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 (
inAudioQueue,
bufferReference,
([ 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?
AudioQueueEnqueueBufferWithParameters(
inAudioQueue,
bufferReference,
([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.
nacho4d
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden