headphone: fix overflow buffer handling

Fixes #11502