| Hi Julian and Steven,
Thanks for the suggestion. I tried it by altering the Audio Session handler in
CsoundObj.m and testing it on an iPhone but the sound level remains the same.
In case I missed something, here are the relevant changes I tried to make.
I'm happy to test any other suggestions you care to offer.
Version 5.18 will be a giant leap if we at least know how to route sound to speakers
- if only for those whose sound world is not trapped in an iPod :-)
Greg S
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Audio Session handler */
AudioSessionInitialize(NULL, NULL, InterruptionListener, &mCsData);
AudioSessionSetActive(true);
// Julian's suggested fix
UInt32 doChangeDefaultRoute = 1;
AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryDefaultToSp
eaker, sizeof(doChangeDefaultRoute), &doChangeDefaultRoute);
// reinstated comments
// UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker;
// AudioSessionSetProperty (kAudioSessionProperty_OverrideAudioRoute,
sizeof(audioRouteOverride), &audioRouteOverride);
// other properties defined by the Audio Session handler
etc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Hi Steven.
>
> I've been playing with iPhone audio independent of csound. The default audio
output is through the headphones or earpiece (as if on a phone call), which is
much quieter than the speaker at the bottom of the unit. Here's the property to
change that:
>
> UInt32 doChangeDefaultRoute = 1;
>
AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryDefaultToSp
eaker, sizeof(doChangeDefaultRoute), &doChangeDefaultRoute);
>
> J
http://en.wikipedia.org/wiki/Greg_Schiemer
G and S Schiemer
Mobile +61 (0)423 120 456 - Greg
Mobile +61 (0)447 744 965 - Shreelata
Phone +61 (0)2 9820 1361
ABN 388 600 181 76
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |