ap4y / OrigamiEngine

Lightweight audio engine for iOS and OSX with flac, cue, mp3, m4a, m3u support.
http://ap4y.github.com/OrigamiEngine/
MIT License
545 stars 118 forks source link

Doesn't work in background mode #72

Open gerchicov-bp opened 8 years ago

gerchicov-bp commented 8 years ago

It means that when screen is switched off the playback is paused

diukar commented 8 years ago

speak Russian? i know how to fix this moment

gerchicov-bp commented 8 years ago

yes

gerchicov-bp commented 8 years ago

? the only solution I found is to use AVAudioSessionCategoryPlayAndRecord but it is strange and may cause bugs

diukar commented 8 years ago

i simply turned ON Background Modes in Capabilities, There is a switch, and then you have checkboxes for different things one of them is Audio

Kfeavel commented 8 years ago

Even after setting the AVAudioSessionCategoryPlayAndRecord I still get an error when playing audio from an http source. It keeps hanging on data = [_fileHandle readDataOfLength:amount]; (line 138) in the HTTPSource.m file. Any suggestions?