diff options
author | Max Kellermann <max@musicpd.org> | 2016-12-13 20:55:48 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-12-13 20:57:46 +0100 |
commit | 6c818bb37a55ca44cb6241a29a836332191b476c (patch) | |
tree | b1ab99c8facf39c4e4ed1fab5c45a7d62b326356 /test | |
parent | 8cb160b1f844b5eb847367a5d9059a037cabaa52 (diff) |
AudioFormat: add method WithMask(), shortcut for ApplyMask()
Diffstat (limited to 'test')
-rw-r--r-- | test/run_convert.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run_convert.cxx b/test/run_convert.cxx index 13d69a242..f4a3f1adc 100644 --- a/test/run_convert.cxx +++ b/test/run_convert.cxx @@ -49,8 +49,8 @@ try { const auto in_audio_format = ParseAudioFormat(argv[1], false); const auto out_audio_format_mask = ParseAudioFormat(argv[2], false); - auto out_audio_format = in_audio_format; - out_audio_format.ApplyMask(out_audio_format_mask); + const auto out_audio_format = + in_audio_format.WithMask(out_audio_format_mask); const size_t in_frame_size = in_audio_format.GetFrameSize(); |