summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2022-09-04 11:49:23 +0200
committerPhilip Langdale <github.philipl@overt.org>2022-09-10 12:32:52 -0700
commit3167a77aa38b3700c9a4459fa5fe2f65eef080a8 (patch)
tree06e2fae53fe11485939795f13ad71539f779bf22 /audio
parent221bf540a1a1dc13a6743f6fdd3b3e47c9f96db2 (diff)
downloadmpv-3167a77aa38b3700c9a4459fa5fe2f65eef080a8.tar.bz2
mpv-3167a77aa38b3700c9a4459fa5fe2f65eef080a8.tar.xz
audio: add AOCONTROL_UPDATE_MEDIA_ROLE
This is used to notify an AO about the type of media that is being played. Either a movie or music.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/audio/out/ao.h b/audio/out/ao.h
index cfcb39790f..7d111c46ff 100644
--- a/audio/out/ao.h
+++ b/audio/out/ao.h
@@ -35,6 +35,8 @@ enum aocontrol {
AOCONTROL_SET_MUTE,
// Has char* as argument, which contains the desired stream title.
AOCONTROL_UPDATE_STREAM_TITLE,
+ // Has enum aocontrol_media_role* argument, which contains the current media role
+ AOCONTROL_UPDATE_MEDIA_ROLE,
};
// If set, then the queued audio data is the last. Note that after a while, new
@@ -64,6 +66,11 @@ typedef struct ao_control_vol {
float right;
} ao_control_vol_t;
+enum aocontrol_media_role {
+ AOCONTROL_MEDIA_ROLE_MUSIC,
+ AOCONTROL_MEDIA_ROLE_MOVIE,
+};
+
struct ao_device_desc {
const char *name; // symbolic name; will be set on ao->device
const char *desc; // verbose human readable name