Ticket #3598: mythtv_pulseaudio_alsa_fix.patch

File mythtv_pulseaudio_alsa_fix.patch, 1.1 KB (added by wberrier@…, 13 years ago)
  • libs/libmyth/audiooutputalsa.cpp

     
    113113        return false;
    114114    }
    115115
    116     err = SetParameters(pcm_handle, SND_PCM_ACCESS_MMAP_INTERLEAVED,
     116    err = SetParameters(pcm_handle, SND_PCM_ACCESS_RW_INTERLEAVED,
    117117                        format, audio_channels, audio_samplerate, buffer_time,
    118118                        period_time);
    119119    if (err < 0)
     
    164164   
    165165    while (frames > 0)
    166166    {
    167         lw = snd_pcm_mmap_writei(pcm_handle, tmpbuf, frames);
     167        lw = snd_pcm_writei(pcm_handle, tmpbuf, frames);
    168168       
    169169        if (lw >= 0)
    170170        {
     
    221221        }
    222222        else
    223223        {
    224             VERBOSE(VB_IMPORTANT, QString("snd_pcm_mmap_writei: %1 (%2)")
     224            VERBOSE(VB_IMPORTANT, QString("snd_pcm_writei: %1 (%2)")
    225225                    .arg(snd_strerror(lw)).arg(lw));
    226226            VERBOSE(VB_IMPORTANT, QString("WriteAudio: snd_pcm_state == %1")
    227227                    .arg(snd_pcm_state(pcm_handle)));