Ticket #9145: pause.diff

File pause.diff, 999 bytes (added by Lawrence Rust <lvr@…>, 10 years ago)

Fix PulseAudio? startup noise

  • mythtv/libs/libmyth/audiooutputbase.cpp

     
    12521252                OutputEvent e(OutputEvent::Paused);
    12531253                dispatch(e);
    12541254                was_paused = true;
    1255             }
    12561255
    1257             actually_paused = true;
    1258             audiotime = 0; // mark 'audiotime' as invalid.
     1256                actually_paused = true;
     1257                audiotime = 0; // mark 'audiotime' as invalid.
    12591258
    1260             // only send zeros if card doesn't already have at least one
    1261             // fragment of zeros -dag
    1262             WriteAudio(zeros, fragment_size);
     1259                // only send zeros if card doesn't already have at least one
     1260                // fragment of zeros -dag
     1261                WriteAudio(zeros, zero_fragment_size);
     1262            }
    12631263            continue;
    12641264        }
    12651265        else