summaryrefslogtreecommitdiff
path: root/src/audio/player.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-10-01 07:15:34 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-10-01 07:15:50 +0300
commit25346114f96a29e8af6125e0cac3d5f8a2ffd551 (patch)
tree43b77e3f3f3be3253362b3dfdf1864924b1fdba1 /src/audio/player.h
parentd719e31a5d38c410e8e2d0795afe91fc59cf352e (diff)
Player: Setting up the audio output
Diffstat (limited to 'src/audio/player.h')
-rw-r--r--src/audio/player.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/audio/player.h b/src/audio/player.h
index 2786f619..121659f2 100644
--- a/src/audio/player.h
+++ b/src/audio/player.h
@@ -22,7 +22,21 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
22 22
23#pragma once 23#pragma once
24 24
25#include <the_Foundation/defs.h> 25#include <the_Foundation/block.h>
26 26
27iDeclareType(Player) 27iDeclareType(Player)
28iDeclareTypeConstruction(Player) 28iDeclareTypeConstruction(Player)
29
30enum iPlayerUpdate {
31 replace_PlayerUpdate,
32 append_PlayerUpdate,
33 complete_PlayerUpdate,
34};
35
36void setFormatHint_Player (iPlayer *, const char *hint);
37void updateSourceData_Player (iPlayer *, const iBlock *data, enum iPlayerUpdate update);
38
39iBool start_Player (iPlayer *);
40void stop_Player (iPlayer *);
41
42iBool isStarted_Player (const iPlayer *);