0
我剛建立了一個遊戲。它已經有了所有的聲音。但由於某些原因,點擊按鈕的音效仍然很小。我怎樣才能最大化音量。我不知道這是因爲聲音文件本身的質量,還是因爲我不會通過代碼增加音量?你們能幫我解決嗎?提前致謝。這是我的代碼。通過代碼最大化iPhone遊戲中的音效?
-(void) play
{
NSString *path = [NSString stringWithFormat:@"%@%@",[[NSBundle mainBundle] resourcePath],@"/menu_button_2.wav"];
SystemSoundID soundID;
NSURL *filePath = [NSURL fileURLWithPath:path isDirectory :NO];
AudioServicesCreateSystemSoundID((CFURLRef)filePath ,&soundID);
AudioServicesPlaySystemSound(soundID);
//AudioServicesDisposeSystemSoundID (soundID);
}