diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-14 19:12:11 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-14 19:12:11 +0300 |
commit | 6b589f349f5fa459d25d865a65d11e242232b7a5 (patch) | |
tree | 6f477867e4815b3bcc2dc90fbf2c0e6fdcb7427e /src/audio/player.h | |
parent | 72a2736572c31bf17ef36e422d35c3975d41e470 (diff) |
Player: Volume adjustment UI
Diffstat (limited to 'src/audio/player.h')
-rw-r--r-- | src/audio/player.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/audio/player.h b/src/audio/player.h index 720f2d78..268188aa 100644 --- a/src/audio/player.h +++ b/src/audio/player.h | |||
@@ -33,15 +33,24 @@ enum iPlayerUpdate { | |||
33 | complete_PlayerUpdate, | 33 | complete_PlayerUpdate, |
34 | }; | 34 | }; |
35 | 35 | ||
36 | enum iPlayerFlag { | ||
37 | adjustingVolume_PlayerFlag = iBit(1), | ||
38 | volumeGrabbed_PlayerFlag = iBit(2), | ||
39 | }; | ||
40 | |||
36 | void updateSourceData_Player (iPlayer *, const iString *mimeType, const iBlock *data, | 41 | void updateSourceData_Player (iPlayer *, const iString *mimeType, const iBlock *data, |
37 | enum iPlayerUpdate update); | 42 | enum iPlayerUpdate update); |
38 | 43 | ||
39 | iBool start_Player (iPlayer *); | 44 | iBool start_Player (iPlayer *); |
40 | void setPaused_Player (iPlayer *, iBool isPaused); | ||
41 | void stop_Player (iPlayer *); | 45 | void stop_Player (iPlayer *); |
46 | void setPaused_Player (iPlayer *, iBool isPaused); | ||
47 | void setVolume_Player (iPlayer *, float volume); | ||
48 | void setFlags_Player (iPlayer *, int flags, iBool set); | ||
42 | 49 | ||
50 | int flags_Player (const iPlayer *); | ||
43 | iBool isStarted_Player (const iPlayer *); | 51 | iBool isStarted_Player (const iPlayer *); |
44 | iBool isPaused_Player (const iPlayer *); | 52 | iBool isPaused_Player (const iPlayer *); |
53 | float volume_Player (const iPlayer *); | ||
45 | float time_Player (const iPlayer *); | 54 | float time_Player (const iPlayer *); |
46 | float duration_Player (const iPlayer *); | 55 | float duration_Player (const iPlayer *); |
47 | float streamProgress_Player (const iPlayer *); /* normalized 0...1 */ | 56 | float streamProgress_Player (const iPlayer *); /* normalized 0...1 */ |