tags:

views:

129

answers:

1

Hi there

Is there way to mute an audio stream or at least control the volume?

cheers

A: 

If you're using the Audio Queue Services, this is how you adjust the volume:

AudioQueueRef queue = [self yourAQCreationMethod];
OSStatus rc = AudioQueueSetParameter(queue, kAudioQueueParam_Volume, 0);
if (rc) {
  NSLog(@"AudioQueueSetParameter returned %d when setting the volume.\n", rc);
}
Frank Shearar