This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Closing sound device when pausing (Xine)

Tags: None
(comma "," separated)
WFrag
Registered Member
Posts
1
Karma
0
Is there any strong reason to close the device when pausing (xine engine)?

I have bluetooth (A2DP) headset with remote control capabilites (connected via the alsa A2DP plugin) and when a press "Play/Pause" on it, amarok pauses and closes the sound device. That results in bluetooth link disconnection and the impossibility to resume playing through the headset (since bluetooth link is down).

Here is my quick fix for this problem:

diff -ur amarok-1.4.1/amarok/src/engine/xine/xine-engine.cpp amarok-1.4.1-custom/amarok/src/engine/xine/xine-engine.cpp
--- amarok-1.4.1/amarok/src/engine/xine/xine-engine.cpp 2006-07-03 02:37:44.000000000 +0700
+++ amarok-1.4.1-custom/amarok/src/engine/xine/xine-engine.cpp  2006-08-12 11:30:27.000000000 +0700
@@ -376,7 +376,7 @@
    if( xine_get_param( m_stream, XINE_PARAM_SPEED ) )
    {
        xine_set_param( m_stream, XINE_PARAM_SPEED, XINE_SPEED_PAUSE );
-        xine_set_param( m_stream, XINE_PARAM_AUDIO_CLOSE_DEVICE, 1);
+        //xine_set_param( m_stream, XINE_PARAM_AUDIO_CLOSE_DEVICE, 1);
        emit stateChanged( Engine::Paused );

    } else {


I do not see any problems with it (besides the fact that device will be busy when the paused).
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS
You gave the reason why. This functionality was requested by users with **** sound cards who wanted amarok to free their sound card on pause.


Amarok Developer
feld
Registered Member
Posts
7
Karma
0
then why not make this a configurable option? should be pretty easy.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]