Ticket #3598: mythtv_pulseaudio_alsa_fix.patch
File mythtv_pulseaudio_alsa_fix.patch, 1.1 KB (added by , 18 years ago) |
---|
-
libs/libmyth/audiooutputalsa.cpp
113 113 return false; 114 114 } 115 115 116 err = SetParameters(pcm_handle, SND_PCM_ACCESS_ MMAP_INTERLEAVED,116 err = SetParameters(pcm_handle, SND_PCM_ACCESS_RW_INTERLEAVED, 117 117 format, audio_channels, audio_samplerate, buffer_time, 118 118 period_time); 119 119 if (err < 0) … … 164 164 165 165 while (frames > 0) 166 166 { 167 lw = snd_pcm_ mmap_writei(pcm_handle, tmpbuf, frames);167 lw = snd_pcm_writei(pcm_handle, tmpbuf, frames); 168 168 169 169 if (lw >= 0) 170 170 { … … 221 221 } 222 222 else 223 223 { 224 VERBOSE(VB_IMPORTANT, QString("snd_pcm_ mmap_writei: %1 (%2)")224 VERBOSE(VB_IMPORTANT, QString("snd_pcm_writei: %1 (%2)") 225 225 .arg(snd_strerror(lw)).arg(lw)); 226 226 VERBOSE(VB_IMPORTANT, QString("WriteAudio: snd_pcm_state == %1") 227 227 .arg(snd_pcm_state(pcm_handle)));