开发者

Is it possible to use different volume levels for different players (AVAudio Player and MPMusicPlayer) while they are playing simultaneously?

开发者 https://www.devze.com 2023-03-14 06:41 出处:网络
I need to set different volume levels for different players using AVAudio and MPMusic Players, I am playing both players but I do not know how to set different different volumes levels.

I need to set different volume levels for different players using AVAudio and MPMusic Players, I am playing both players but I do not know how to set different different volumes levels.

Thank you, Madan Moha开发者_开发问答n


Say your avaudioplayer is named theAudio. To control that volume, say [theAudio.volume =//volume here]; Do the same for mpmusicplayercontroller.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号