Connected volume control GUI with Controller class, and made slider non-linear.
This should be reviewed, and a better algorith should be selected. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17375 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
class BBitmap;
|
||||
class BMediaFile;
|
||||
class BMediaTrack;
|
||||
class SoundOutput;
|
||||
class VideoView;
|
||||
|
||||
class Controller
|
||||
@@ -63,6 +64,8 @@ public:
|
||||
|
||||
void VolumeUp();
|
||||
void VolumeDown();
|
||||
|
||||
void SetVolume(float value);
|
||||
|
||||
private:
|
||||
static int32 audio_play_thread(void *self);
|
||||
@@ -95,6 +98,7 @@ private:
|
||||
thread_id fVideoPlayThread;
|
||||
volatile bool fStopAudioPlayback;
|
||||
volatile bool fStopVideoPlayback;
|
||||
SoundOutput * fSoundOutput;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user