[mythtv-commits] Ticket #9930: Distorted alsa-output on some soundcards

MythTV noreply at mythtv.org
Thu Jul 21 09:08:36 UTC 2011


#9930: Distorted alsa-output on some soundcards
---------------------------------------+-----------------------------------
     Reporter:  mac20xx@…              |      Owner:  jyavenard
         Type:  Patch - Bug Fix        |     Status:  new
     Priority:  minor                  |  Milestone:  0.24.1
    Component:  MythTV - Audio Output  |    Version:  0.24.1
     Severity:  medium                 |   Keywords:  distorted alsa output
Ticket locked:  0                      |
---------------------------------------+-----------------------------------
 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.

 AudioOutputALSA::WriteAudio():
   added some error checking

 AudioOutputALSA::SetParameters():
   new computation of period_size and buffer_size

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9930>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list