Set device volume on iPhone

前端 未结 2 671
南笙
南笙 2021-02-10 18:27

I\'m writing an app that uses AVAudioPlayers to play sounds and I need the sounds to play at absolute MAX volume. Yes you can set the relative volume for an

2条回答
  •  半阙折子戏
    2021-02-10 19:07

    The comment from the anonymous for this site:

    float volume;
    [[MPMusicPlayerController applicationMusicPlayer] setVolume:volume];
    

    does actually work.

提交回复
热议问题