@ -189,13 +189,16 @@ XineEngine::makeNewStream()
& XineEngine : : XineEventListener ,
( void * ) this ) ;
# ifndef XINE_SAFE_MODE
# ifndef XINE_SAFE_MODE
# if XINE_MAJOR_VERSION < 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION < 2) || \
( XINE_MAJOR_VERSION = = 1 & & XINE_MINOR_VERSION = = 2 & & XINE_SUB_VERSION < 10 )
//implemented in xine-scope.h
m_post = scope_plugin_new ( m_xine , m_audioPort ) ;
# endif
xine_set_param ( m_stream , XINE_PARAM_METRONOM_PREBUFFER , 6000 ) ;
xine_set_param ( m_stream , XINE_PARAM_IGNORE_VIDEO , 1 ) ;
# endif
# endif
# ifdef XINE_PARAM_EARLY_FINISHED_EVENT
if ( xine_check_version ( 1 , 1 , 1 ) & & ! ( m_xfadeLength > 0 ) ) {
// enable gapless playback
@ -260,14 +263,17 @@ XineEngine::load( const KURL &url, bool isStream )
{
debug ( ) < < " After xine_open() ***** " < < endl ;
# ifndef XINE_SAFE_MODE
# ifndef XINE_SAFE_MODE
//we must ensure the scope is pruned of old buffers
timerEvent ( 0 ) ;
# if XINE_MAJOR_VERSION < 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION < 2) || \
( XINE_MAJOR_VERSION = = 1 & & XINE_MINOR_VERSION = = 2 & & XINE_SUB_VERSION < 10 )
xine_post_out_t * source = xine_get_audio_source ( m_stream ) ;
xine_post_in_t * target = ( xine_post_in_t * ) xine_post_input ( m_post , const_cast < char * > ( " audio in " ) ) ;
xine_post_wire ( source , target ) ;
# endif
# endif
# endif
playlistChanged ( ) ;
@ -718,6 +724,8 @@ XineEngine::scope()
if ( ! m_post | | ! m_stream | | xine_get_status ( m_stream ) ! = XINE_STATUS_PLAY )
return m_scope ;
# if XINE_MAJOR_VERSION < 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION < 2) || \
( XINE_MAJOR_VERSION = = 1 & & XINE_MINOR_VERSION = = 2 & & XINE_SUB_VERSION < 10 )
MyNode * const myList = scope_plugin_list ( m_post ) ;
metronom_t * const myMetronom = scope_plugin_metronom ( m_post ) ;
const int myChannels = scope_plugin_channels ( m_post ) ;
@ -776,6 +784,7 @@ XineEngine::scope()
}
Log : : scopeCallCount + + ;
# endif
return m_scope ;
}
@ -786,8 +795,9 @@ XineEngine::timerEvent( TQTimerEvent* )
if ( ! m_stream )
return ;
# if XINE_MAJOR_VERSION < 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION < 2) || \
( XINE_MAJOR_VERSION = = 1 & & XINE_MINOR_VERSION = = 2 & & XINE_SUB_VERSION < 10 )
//here we prune the buffer list regularly
MyNode * myList = scope_plugin_list ( m_post ) ;
if ( ! myList ) return ;
@ -816,6 +826,7 @@ XineEngine::timerEvent( TQTimerEvent* )
prev = node ;
}
# endif
}
Amarok : : PluginConfig *