lukasjapan/bt-speaker

Sound glitches when starting audio playback.

Closed this issue · 0 comments

Hi

I get some rather annoying sound glichtes (snaps or crackles) when starting the audio playback on my phone (or when changing from one app to another). I notices that this wasn't a problem before the "broken pipe fix" was implemented.
I don't know much python and nothing about bluetooth audio streaming, but the noises dissapear when i remove the following line:

self.process.stdin.write(data)

Without the fix for the broken pipe, my audio would stop playing after about 15 minutes. Connection would persist but it would just go silent.