Re: Setting volume programmatically
Re: Setting volume programmatically
- Subject: Re: Setting volume programmatically
- From: Tony Guetta <email@hidden>
- Date: Thu, 29 Jul 2010 20:45:21 -0700
You might want to check out kAudioSessionProperty_OverrideCategoryDefaultToSpeaker in AudioServices.h
Tony
On Jul 29, 2010, at 7:56 PM, Brad wrote:
>
>> I have a simple iPhone app using RemoteIO to record (save the samples on
>> file) and playback on iPhone GS. It is based on SDK 3.1. It works now. But
>> the output to the speaker is very low even after turning on the iPhone
>> speaker to the max using the volume control on the left side of the iPhone.
>>
>>
> Hopefully you're not doing what I was doing... setting the AVAudioSession setCategory: to AVAudioSessionPlayAndRecord. This allows both play and record, but routes playback through the earpiece (receiver) instead of the speaker and the volume is very low. Instead I use AVAudioSessionRecord when recording and then switch to AVAudioSessionPlay for playback, giving full range of volume.
>
>
>
>
> _______________________________________________
> 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
_______________________________________________
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