AUGraph and AUFilePlayer Lifecycle
AUGraph and AUFilePlayer Lifecycle
- Subject: AUGraph and AUFilePlayer Lifecycle
- From: alessandro aresta <email@hidden>
- Date: Sun, 29 Jan 2012 17:19:09 +0100
Hi all; I'm dealing with a quite complex AUGraph and I'm trying to switch the file an AUFilePlayer is playing; I did stop the AUGraph, Uninitialize it and changed the filePath of the audioURL, opened the audioURL with
AudioFileOpenURL but I do receive -50, Error: AudioUnitSetProperty[kAudioUnitProperty_ScheduledFileIDs] failed (-50) to be exact.
An almost similar method however is loading the file (the exact same file) into the AUFilePlayer unit in the setup procedure and everything is working smooth until I try to switch audio file.
My question is: what is the right procedure to change audio file for a instantiated AUFilePlayerUnit? does it also involve AUGraphDisconnectNodeInput to disconnect the Unit from the Mixer (yes I'm also using a mixer unit where the AUFilePlayer Unit is connected ) ?
Probably the answer is very easy and I'm too tired at the moment to hel myself.
tnx in advance
--
Alessandro Alexander Stone Aresta
iOS / Web / Multimedia
development & consulting
email : email@hiddenskype : alexanderstone2007
This is a confidential communication intended only for the named addressee.
If you received this communication in error, please notify us and return and delete it without reading it.
This e-mail may not be
disclosed, copied or distributed
in any form without the obtained permission in writing of SharpeiMultimedia.
In any case it may not be altered or otherwise
changed.
Whilst SharpeiMultimedia believes that the information is correct at the date of the e-mail, no warranty and
representation is given to this effect and no responsibility can be accepted by SharpeiMultimedia.
_______________________________________________
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