changeset 25007:eb36c7846fbe

Remove an useless conditional suggested by Emanuele Giaquinta.
author ulion
date Tue, 13 Nov 2007 15:08:17 +0000
parents cc8cb1bbd38e
children fc7167427c7e
files libao2/ao_macosx.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_macosx.c	Tue Nov 13 14:29:02 2007 +0000
+++ b/libao2/ao_macosx.c	Tue Nov 13 15:08:17 2007 +0000
@@ -445,7 +445,6 @@
     }
 
 	/* original analog output code */
-	if (!aoIsCreated) {
 	desc.componentType = kAudioUnitType_Output;
 	desc.componentSubType = kAudioUnitSubType_DefaultOutput;
 	desc.componentManufacturer = kAudioUnitManufacturer_Apple;
@@ -470,7 +469,6 @@
 		ao_msg(MSGT_AO, MSGL_WARN, "Unable to initialize Output Unit component: [%4.4s]\n", (char *)&err);
 		return CONTROL_FALSE;
 	}
-	}
 
 	size =  sizeof(AudioStreamBasicDescription);
 	err = AudioUnitSetProperty(ao->theOutputUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &inDesc, size);