ed80a78265
Still happy with gcc 3.3.5 Tested on sparc64 and i386
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
$OpenBSD: patch-src_AudioController_cpp,v 1.1 2011/03/30 14:00:48 dcoppa Exp $
|
|
--- src/AudioController.cpp.orig Wed Mar 30 13:37:45 2011
|
|
+++ src/AudioController.cpp Wed Mar 30 13:38:36 2011
|
|
@@ -134,6 +134,8 @@ AudioControllerThread::run()
|
|
this, SLOT ( onTimerTimeout() ),
|
|
Qt::DirectConnection );
|
|
|
|
+ m_output->setBufferCapacity( kOutputBufferMinSize );
|
|
+ m_output->setDevice( The::settings().soundCard() );
|
|
|
|
// What is this interval exactly?
|
|
// It's how often we send out timeChanged signals (500 ms)
|
|
@@ -168,19 +170,10 @@ AudioControllerThread::loadPlugins()
|
|
|
|
m_transcode->setBufferCapacity( kDecodedBufferMinSize );
|
|
|
|
- #ifdef WIN32
|
|
- m_output = qobject_cast<OutputInterface*>( loadPlugin( "rtaudioplayback" ) );
|
|
- #elif defined LINUX
|
|
- m_output = qobject_cast<OutputInterface*>( loadPlugin( "output_alsa" ) );
|
|
- #else
|
|
- m_output = qobject_cast<OutputInterface*>( loadPlugin( "output_portaudio" ) );
|
|
- #endif
|
|
+ m_output = qobject_cast<OutputInterface*>( loadPlugin( "output_portaudio" ) );
|
|
|
|
if ( m_output == 0 )
|
|
return false;
|
|
-
|
|
- m_output->setBufferCapacity( kOutputBufferMinSize );
|
|
- m_output->setDevice( The::settings().soundCard() );
|
|
|
|
m_proxyOutput = new ProxyOutput();
|
|
|