简体   繁体   中英

Stream music from file with AudioToolbox

I want to play music from file using AudioToolbox and loop it. I can't use AVFoundation because it is not available on Snow Leopard.

I have downloaded AudioStreamer class and modified it so it plays sound from local file, but I can not loop it.

Help please.

Try this one, it supports local file perfectly.

https://github.com/douban/DOUAudioStreamer

Just see example for usage.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM