Commit af3f3a10 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - IM: Add a setRate function.

parent 35c9f06f
...@@ -242,6 +242,12 @@ void InputManager::normalRate() ...@@ -242,6 +242,12 @@ void InputManager::normalRate()
var_SetInteger( p_input, "rate", INPUT_RATE_DEFAULT ); var_SetInteger( p_input, "rate", INPUT_RATE_DEFAULT );
} }
void InputManager::setRate( int new_rate )
{
if( hasInput() )
var_SetInteger( p_input, "rate", new_rate );
}
/********************************************************************** /**********************************************************************
* MainInputManager implementation. Wrap an input manager and * MainInputManager implementation. Wrap an input manager and
* take care of updating the main playlist input * take care of updating the main playlist input
......
...@@ -55,6 +55,7 @@ public slots: ...@@ -55,6 +55,7 @@ public slots:
void slower(); void slower();
void faster(); void faster();
void normalRate(); void normalRate();
void setRate( int );
void sectionNext(); void sectionNext();
void sectionPrev(); void sectionPrev();
void sectionMenu(); void sectionMenu();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment