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:
Marcus Overhagen
2006-05-08 20:40:58 +00:00
parent 5a5960830d
commit 131d97be80
5 changed files with 97 additions and 17 deletions
+4
View File
@@ -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;
};