summaryrefslogtreecommitdiffstats
path: root/include/xas
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-06 20:10:57 -0500
committerXANTRONIX Development2022-03-06 20:11:36 -0500
commitd408944a8c0ce626ff35c80b6b6e5fb2f7dc1fb9 (patch)
tree1fc02aeaae49af28cdc7a578ba76e51183ab7f31 /include/xas
parentb1be8446edf9c4951f4fee321565f7af21ff4a8c (diff)
downloadxas-d408944a8c0ce626ff35c80b6b6e5fb2f7dc1fb9.tar.gz
xas-d408944a8c0ce626ff35c80b6b6e5fb2f7dc1fb9.tar.bz2
xas-d408944a8c0ce626ff35c80b6b6e5fb2f7dc1fb9.zip
Implement xas_bank_player_set_flags()
Implement xas_bank_player_set_flags() to allow setting certain playback flags, such as, XAS_BANK_PLAYER_LOOP
Diffstat (limited to 'include/xas')
-rw-r--r--include/xas/bank.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xas/bank.h b/include/xas/bank.h
index aed01ab..716ad64 100644
--- a/include/xas/bank.h
+++ b/include/xas/bank.h
@@ -8,6 +8,9 @@
#define XAS_BANK_PLAYER_DEFAULT_GAIN 1.0f
+#define XAS_BANK_PLAYER_NONE 0
+#define XAS_BANK_PLAYER_LOOP (1 << 0)
+
enum xas_bank_player_status {
XAS_BANK_PLAYER_STOPPED,
XAS_BANK_PLAYER_PLAYING,
@@ -29,6 +32,7 @@ typedef struct _xas_bank_player {
xas_bank *bank;
enum xas_bank_player_status status;
+ int flags;
float gain;
@@ -63,6 +67,8 @@ int xas_bank_player_start(xas_bank_player *player);
int xas_bank_player_stop(xas_bank_player *player);
+int xas_bank_player_set_flags(xas_bank_player *player, int flags);
+
int xas_bank_player_playing(xas_bank_player *player);
xas_audio_stream *xas_bank_player_stream_new(xas_bank_player *player);