Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] A last request for iOS 5.18 (Steven Yi)

Date2012-08-31 00:35
From"Greg Schiemer"
SubjectRe: [Cs-dev] A last request for iOS 5.18 (Steven Yi)
Hi Steven, 

I'm using iPhone 4 (A1332 etched on the back, ergo GSM model, released 2011).

The iPhone Simulator (5.1) does all the right things for me too. The problems I 
listed only became apparent when the app runs on the phone. 

The issue of sound level is possibly related to the way the audio session is 
deployed in Csound iOS Examples.xcodeproj e.g. perhaps the problem is related 
to the following line in CsoundObj.m 

UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker;

This was commented out. When I removed the comments, a warning appeared: 

unused variable 'AudioRouteOverride'

This suggests that phone hardware is set up so audio signals by default come out 
the iPhone earphone sockets. And this is exactly what happens - the sound is 
really clear through the ear phones.

My Mandala app uses the same AudioToolbox.framework and I recently did a 
concert with it where four iPhone speakers was the only sound projection used. 

I'm currently trying to find precisely where my app differs from the Csound iOS 
Examples. I'll let you know when I do. You're most welcome to the Mandala source 
code if that helps. And if you need an iPhone on loan, let me know. I have four.

Cheers

Greg S
 
> Message: 5
> Date: Thu, 30 Aug 2012 16:41:32 +0100
> From: Steven Yi 
> Subject: Re: [Cs-dev] A last request for iOS 5.18

> Just to follow-up, on the 4.3 iPhone simulator, things seem to be
> working.  It may be a hardware device issue.  Which iPhone were you
> testing on?

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

Date2012-08-31 16:35
FromSteven Yi
SubjectRe: [Cs-dev] A last request for iOS 5.18 (Steven Yi)
Hi Greg,

Uncommenting the two lines of code is working here on a 3g to get
sound out from the speaker bottom.   I've committed that.  This 3g is
proving a bit difficult to test with for other things though.  I think
we may have to stop here for the 5.18.2 release and can do another
release shortly after once other things can be better diagnosed.

Thanks!
steven


On Fri, Aug 31, 2012 at 12:35 AM, Greg Schiemer  wrote:
> Hi Steven,
>
> I'm using iPhone 4 (A1332 etched on the back, ergo GSM model, released 2011).
>
> The iPhone Simulator (5.1) does all the right things for me too. The problems I
> listed only became apparent when the app runs on the phone.
>
> The issue of sound level is possibly related to the way the audio session is
> deployed in Csound iOS Examples.xcodeproj e.g. perhaps the problem is related
> to the following line in CsoundObj.m
>
> UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker;
>
> This was commented out. When I removed the comments, a warning appeared:
>
> unused variable 'AudioRouteOverride'
>
> This suggests that phone hardware is set up so audio signals by default come out
> the iPhone earphone sockets. And this is exactly what happens - the sound is
> really clear through the ear phones.
>
> My Mandala app uses the same AudioToolbox.framework and I recently did a
> concert with it where four iPhone speakers was the only sound projection used.
>
> I'm currently trying to find precisely where my app differs from the Csound iOS
> Examples. I'll let you know when I do. You're most welcome to the Mandala source
> code if that helps. And if you need an iPhone on loan, let me know. I have four.
>
> Cheers
>
> Greg S
>
>> Message: 5
>> Date: Thu, 30 Aug 2012 16:41:32 +0100
>> From: Steven Yi 
>> Subject: Re: [Cs-dev] A last request for iOS 5.18
>
>> Just to follow-up, on the 4.3 iPhone simulator, things seem to be
>> working.  It may be a hardware device issue.  Which iPhone were you
>> testing on?
>
> 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
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
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