From 7cd7ca46f8e9495b00b3c0d725249e07e1e02dc4 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 21 Feb 2014 19:46:20 +0100 Subject: [PATCH] Sf2Player: use qDebug() rather than QTextStream on stdout --- plugins/sf2_player/sf2_player.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index afb053245..098059a78 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -24,7 +24,6 @@ */ #include -#include #include #include #include @@ -296,8 +295,6 @@ QString sf2Instrument::nodeName() const void sf2Instrument::freeFont() { - QTextStream cout( stdout, QIODevice::WriteOnly ); - m_synthMutex.lock(); if ( m_font != NULL ) @@ -308,7 +305,7 @@ void sf2Instrument::freeFont() // No more references if( m_font->refCount <= 0 ) { - cout << "Really deleting " << m_filename << endl; + qDebug() << "Really deleting " << m_filename; fluid_synth_sfunload( m_synth, m_fontId, true ); s_fonts.remove( m_filename ); @@ -317,7 +314,7 @@ void sf2Instrument::freeFont() // Just remove our reference else { - cout << "un-referencing " << m_filename << endl; + qDebug() << "un-referencing " << m_filename; fluid_synth_remove_sfont( m_synth, m_font->fluidFont ); } @@ -347,8 +344,7 @@ void sf2Instrument::openFile( const QString & _sf2File, bool updateTrackName ) // Increment Reference if( s_fonts.contains( relativePath ) ) { - QTextStream cout( stdout, QIODevice::WriteOnly ); - cout << "Using existing reference to " << relativePath << endl; + qDebug() << "Using existing reference to " << relativePath; m_font = s_fonts[ relativePath ];