Stream music from file with AudioToolbox

515 Views Asked by At

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.

1

There are 1 best solutions below

0
On

Try this one, it supports local file perfectly.

https://github.com/douban/DOUAudioStreamer

Just see example for usage.