Changeset 7945ecb in orbit
- Timestamp:
- 08/07/13 13:56:01 (9 years ago)
- Branches:
- master, Servo, Tab_Interface, pyramid
- Children:
- 1472980
- Parents:
- 359a504
- Location:
- iOS/Orbit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
iOS/Orbit/Orbit/SignalConverter.m
r359a504 r7945ecb 49 49 // initialise the audio session - this should only be done once 50 50 AudioSessionInitialize(NULL, NULL, NULL, NULL); 51 AudioSessionSetActive(YES); 51 52 } 52 53 return self; … … 70 71 [_delegate appStopped]; 71 72 } 73 AudioSessionSetActive(NO); 72 74 } 73 75 … … 142 144 - (BOOL) isVolumeMax 143 145 { 144 AudioSessionSetActive(YES); 145 float volume = [[AVAudioSession sharedInstance] outputVolume]; 146 Float32 volume; 147 UInt32 dataSize; 148 AudioSessionGetPropertySize(kAudioSessionProperty_CurrentHardwareOutputVolume, &dataSize); 149 AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareOutputVolume, &dataSize, &volume); 146 150 NSLog(@"Volume is %f", volume); 147 151 return 1.0 == volume; … … 157 161 158 162 // make the call to get the audio description and populate the desc dictionary 159 AudioSessionGetProperty 163 AudioSessionGetProperty(kAudioSessionProperty_AudioRouteDescription, &routeSize, &desc); 160 164 161 165 // the dictionary contains 2 keys, for input and output. Get output array
Note: See TracChangeset
for help on using the changeset viewer.