当前位置:编程学习 > wap >>

ios 音量调节的问题

if (!m_reqfloorSoundID) {
NSString *floorSoundPath = [[NSBundle mainBundle] pathForResource:@"req_floor" ofType:@"wav"];
NSURL *floorSoundURL = [NSURL fileURLWithPath:floorSoundPath];
AVAudioPlayer *floorSoundPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:floorSoundURL error:nil];
[floorSoundPlayer prepareToPlay];
AudioServicesCreateSystemSoundID((CFURLRef)floorSoundURL, &m_reqfloorSoundID);
[floorSoundPlayer release];
}
//播放提示音
AudioServicesPlaySystemSound(m_reqfloorSoundID);

我是用上面的方法播放提示音,但是为什么不能用iphone自带的调节音量来调节声音大小呢???? --------------------编程问答-------------------- 怎么会?你把手机的声音关了,难道你播放的声音还在? --------------------编程问答--------------------
引用 1 楼  的回复:
怎么会?你把手机的声音关了,难道你播放的声音还在?

恩,是的!
补充:移动开发 ,  iPhone
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,