Ticket #9930: audio-scrambled.diff

File audio-scrambled.diff, 643 bytes (added by JYA, 9 years ago)
  • mythtv/libs/libmyth/audiooutputalsa.cpp

    diff --git a/mythtv/libs/libmyth/audiooutputalsa.cpp b/mythtv/libs/libmyth/audiooutputalsa.cpp
    index 854293c..371f808 100644
    a b int AudioOutputALSA::SetParameters(snd_pcm_t *handle, snd_pcm_format_t format, 
    725725
    726726    /* set member variables */
    727727    soundcard_buffer_size = buffer_size * output_bytes_per_frame;
    728     fragment_size = (period_size * output_bytes_per_frame) >> 1;
     728    fragment_size = (period_size >> 1) * output_bytes_per_frame;
    729729
    730730    /* get the current swparams */
    731731    err = snd_pcm_sw_params_current(handle, swparams);