Commit 7fa4bc56 authored by jehan's avatar jehan
Browse files

remove kAudioSessionAlreadyInitialized error message for iphone

parent d4966d71
......@@ -118,7 +118,6 @@ static MSSndCard *au_duplicate(MSSndCard *obj){
#define check_auresult(au,method) \
if (au!=0) ms_error("AudioUnit error for %s: ret=%i",method,au)
static void au_interuption_listener(void* inClientData, UInt32 inInterruptionState) {
if (((MSSndCard*)inClientData)->data == NULL) return;
......@@ -148,7 +147,9 @@ static MSSndCard *au_card_new(){
MSSndCard *card=ms_snd_card_new(&au_card_desc);
card->name=ms_strdup("Audio Unit");
OSStatus auresult = AudioSessionInitialize(NULL, NULL, au_interuption_listener, card);
if (auresult != kAudioSessionAlreadyInitialized) {
return card;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment