summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_openal.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/out/ao_openal.c')
-rw-r--r--audio/out/ao_openal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/out/ao_openal.c b/audio/out/ao_openal.c
index 2af9fadb4f..53fcaca05e 100644
--- a/audio/out/ao_openal.c
+++ b/audio/out/ao_openal.c
@@ -428,9 +428,9 @@ const struct ao_driver audio_out_openal = {
.direct_channels = 0,
},
.options = (const struct m_option[]) {
- OPT_INTRANGE("num-buffers", num_buffers, 0, 2, MAX_BUF),
- OPT_INTRANGE("num-samples", num_samples, 0, 256, MAX_SAMPLES),
- OPT_FLAG("direct-channels", direct_channels, 0),
+ {"num-buffers", OPT_INT(num_buffers), M_RANGE(2, MAX_BUF)},
+ {"num-samples", OPT_INT(num_samples), M_RANGE(256, MAX_SAMPLES)},
+ {"direct-channels", OPT_FLAG(direct_channels)},
{0}
},
.options_prefix = "openal",