1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Fix for xcode linker warnings when using the static lib. Tweaks to iPhone audio and StretchableLayoutManager.

This commit is contained in:
Julian Storer 2010-07-06 10:24:06 +01:00
parent e80ee06365
commit 942999ea31
8 changed files with 35 additions and 17 deletions

View file

@ -122,7 +122,9 @@ public:
AudioSessionSetActive (true);
UInt32 audioCategory = kAudioSessionCategory_PlayAndRecord;
UInt32 audioCategory = audioInputIsAvailable ? kAudioSessionCategory_PlayAndRecord
: kAudioSessionCategory_MediaPlayback;
AudioSessionSetProperty (kAudioSessionProperty_AudioCategory, sizeof (audioCategory), &audioCategory);
AudioSessionAddPropertyListener (kAudioSessionProperty_AudioRouteChange, propertyChangedStatic, this);