开发者

how to stop sound, control volume... with AudioToolbox

开发者 https://www.devze.com 2022-12-13 14:49 出处:网络
How i do the following u开发者_JAVA技巧sing the AudioToolbox framework instead of the AVFoundation

How i do the following u开发者_JAVA技巧sing the AudioToolbox framework instead of the AVFoundation

playing
stop
setCurrentTime
volume

i implement the SoundEffect class from the BubbleLevel example code and this options don't work.

Thanks!


I believe you are looking for the AudioQueue functionality, it doesn't match the AVFoundations methods exactly, but is similar.

http://developer.apple.com/mac/library/documentation/MusicAudio/Reference/AudioQueueReference/Reference/reference.html

Controlling Audio Queues

* AudioQueueStart
* AudioQueuePrime
* AudioQueueFlush
* AudioQueueStop
* AudioQueuePause
* AudioQueueReset
0

精彩评论

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