Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a few issues post arc-update

  • Loading branch information...
commit 4a7cadabce0d0d1ef63910a6a931158b2587b9df 1 parent 80bc9c1
@ndonald2 ndonald2 authored
View
3  Novocaine Mac Example/AppDelegate.mm
@@ -119,7 +119,8 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
// }
// };
-
+ // START IT UP YO
+ [self.audioManager play];
}
@end
View
4 Novocaine iOS Example/ViewController.mm
@@ -218,7 +218,9 @@ - (void)viewWillAppear:(BOOL)animated
// }
// };
-
+ // START IT UP YO
+ [self.audioManager play];
+
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
View
3  Novocaine/Novocaine.m
@@ -189,9 +189,9 @@ - (void)freeBuffers
#ifdef USING_IOS
- (void)setForceOutputToSpeaker:(BOOL)forceOutputToSpeaker
{
- UInt32 value = forceOutputToSpeaker ? 1 : 0;
#if !TARGET_IPHONE_SIMULATOR
+ UInt32 value = forceOutputToSpeaker ? 1 : 0;
// should not be fatal error
OSStatus err = AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryDefaultToSpeaker, sizeof(UInt32), &value);
if (err != noErr){
@@ -318,6 +318,7 @@ - (void)setupAudioUnits
sizeof(UInt32)), "Couldn't disable output on the audio unit");
// Enable output
+ UInt32 one = 1;
CheckError( AudioUnitSetProperty(_outputUnit,
kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Output,
Please sign in to comment.
Something went wrong with that request. Please try again.