stijnvdb88 / Snap.Net

A cross-platform control client and player for https://github.com/badaix/snapcast
GNU General Public License v3.0
121 stars 11 forks source link

iOS player stutters when screen is locked #21

Closed stijnvdb88 closed 3 years ago

stijnvdb88 commented 3 years ago

This is likely caused by iOS changing the IO render size during screen lock (https://developer.apple.com/library/archive/qa/qa1606/_index.html).

Should be fixable by either increasing kAudioUnitProperty_MaximumFramesPerSlice (not sure how to get to that with AVAudioEngine), or setting AVAudioSession's setPreferredIOBufferDuration

jtrees commented 3 years ago

With version 1.2 this works like a charm now.

Thanks so much! I'm really impressed by your support. <3

For reference, here are my specs:

stijnvdb88 commented 3 years ago

Fantastic, thanks!