Re: how can I pause aufileplayer ?
Re: how can I pause aufileplayer ?
- Subject: Re: how can I pause aufileplayer ?
- From: William Stewart <email@hidden>
- Date: Mon, 12 Sep 2005 16:13:06 -0700
On 12/09/2005, at 12:32 PM, thomas rettich wrote:
Hi,
I have set up an augraph with aufileplayer as the generator.
ok
I tried pausing a track by calling augraphstop.
ok - this stops the whole graph though
however, when I do this, I can't start the graph again even if re-
initialize it.
you must have a bug here. In AULab I can create a document with a
file player au in it and start and stop it as often as I want. The
file player though, doesn't restart playing when I do this.
Have a look at the code in the latest CoreAudio Examples Download
(http://developer.apple.com/audio - CoreAudio SDK 1.4.2) - that has a
PlayFile example in the simple examples that uses the fileplayerAU
and AUGraph.
so what would be the best way to pause the track.
Just un-schedule the file. The UI that you see being presented by AU
Lab for this AU can also be used by your application. It is just a
cocoa view for that AU. As an exercise, you could take that PlayFile
example I describe above, and use that as a basis - then add code to
get the cocoa view from the file player and use the view to start/
stop playback of a file.
Bill
+ when the complete file is played the application crashes .. is
there some sort of notifcation mechanism I can use in a cocoa app
to catch this problem .. if so, what are the steps I have to do ?
thanks,
thomas
_________________________________________________________________
Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen Sie
gleichzeitig im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu!
http://desktop.msn.de/ Jetzt gratis downloaden!
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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