summaryrefslogtreecommitdiffstats
path: root/audio/out
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2023-02-02 04:41:14 +0000
committersfan5 <sfan5@live.de>2023-07-31 14:01:44 +0200
commit6e023547ead032f2323dff345f3b81d75e437ff2 (patch)
tree71259b7db6b2e7b8982013e7020ef24630f75910 /audio/out
parent1bbc7a2cd086e025d66d8f70e2399c58d26e9972 (diff)
downloadmpv-6e023547ead032f2323dff345f3b81d75e437ff2.tar.bz2
mpv-6e023547ead032f2323dff345f3b81d75e437ff2.tar.xz
audio: add AO_INIT_MEDIA_ROLE_MUSIC
This allows the AO to set the media role directly during init().
Diffstat (limited to 'audio/out')
-rw-r--r--audio/out/ao.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao.h b/audio/out/ao.h
index baa8d35a02..78f21c9ed9 100644
--- a/audio/out/ao.h
+++ b/audio/out/ao.h
@@ -56,6 +56,8 @@ enum {
AO_INIT_STREAM_SILENCE = 1 << 2,
// Force exclusive mode, i.e. lock out the system mixer.
AO_INIT_EXCLUSIVE = 1 << 3,
+ // Initialize with music role.
+ AO_INIT_MEDIA_ROLE_MUSIC = 1 << 4,
};
struct ao_device_desc {