All pastes #72980 Raw Edit

Stuff

public text v1 · immutable
#72980 ·published 2006-06-27 08:54 UTC
rendered paste body
Index: xine-engine.cpp
===================================================================
--- xine-engine.cpp     (revision 555368)
+++ xine-engine.cpp     (working copy)
@@ -14,6 +14,9 @@

 #define DEBUG_PREFIX "xine-engine"

+#include <xine/audio_out.h> //flush
+#include <xine/metronom.h>
+
 #include "xine-config.h"
 #include "xinecfg.h"
 #include "xine-engine.h"
@@ -1161,4 +1164,10 @@
     return true;
 }

+bool XineEngine::flushBuffer()
+{
+    m_audioPort->flush( m_audioPort );
+    return true;
+}
+
 #include "xine-engine.moc"
Index: xine-engine.h
===================================================================
--- xine-engine.h       (revision 555358)
+++ xine-engine.h       (working copy)
@@ -42,6 +42,7 @@

     virtual bool metaDataForUrl(const KURL &url, Engine::SimpleMetaBundle &b);
     virtual bool getAudioCDContents(const QString &device, KURL::List &urls);
+    virtual bool flushBuffer();

     virtual Engine::State state() const;
     virtual const Engine::Scope &scope();