Return to Snippet

Revision: 42115
at February 27, 2011 18:00 by takezou621


Initial Code
#import <AudioToolbox/AudioToolbox.h>


-(void) viewDidLoad{
	AudioSessionInitialize(NULL,NULL,NULL,NULL);
	
	//カテゴリをMediaPlaybackにする
	UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback;
	AudioSessionSetProperty =(kAudioSessionProperty_AudioCategory,
							sizeof(sessionCategory),
							&sessionCategory);
	AudioSessionSetActive(YES);
}

Initial URL

                                

Initial Description

                                

Initial Title
サイレントモードでもサウンドを鳴らす

Initial Tags

                                

Initial Language
Objective C