Ticket #9930 (closed Patch - Bug Fix: fixed)
Opened 22 months ago
Last modified 22 months ago
Distorted alsa-output on some soundcards
|Reported by:||mac20xx@…||Owned by:||jyavenard|
|Component:||MythTV - Audio Output||Version:||0.24.1|
|Severity:||medium||Keywords:||distorted alsa output|
libmyth/audiooutputalsa.cpp: period_size and buffer_size are not aligned correctly to alsa-frames. Depending on your soundcard this may cause distorted output.
In my case (Terratec EWX24/96 with ICE1712 chip) on every call of WriteAudio?() one sample (only left or right channel) was left out so that the channels where swapped after every call of WriteAudio?(). That has caused distorted output on alsa-output.
added some error checking
new computation of period_size and buffer_size
comment:2 Changed 22 months ago by jyavenard
comment:13 Changed 22 months ago by Github
- Status changed from new to closed
- Resolution set to fixed