Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序如下所示: iOS 音调发生器(AudioUnits 简介) 也生成一些信号。我想在应用程序启动时设置最大音量。怎么做?谢谢
这应该有效:
float volume = 1.0f; [[MPMusicPlayerController applicationMusicPlayer] setVolume:volume];
你可以这样做:
[Music setVolume:0.3]; [Music play];
0.0 表示关闭音量,1.0 表示最大音量