<html><head></head><body><div class="gmail_quote">Le 7 juillet 2017 16:39:54 GMT+03:00, Thomas Guillem <thomas@gllm.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Set the default wg4 channel layout from a numbers of channels.<br />---<br /> include/vlc_aout.h | 9 +++++++++<br /> 1 file changed, 9 insertions(+)<br /><br />diff --git a/include/vlc_aout.h b/include/vlc_aout.h<br />index bbe7b4cbbe..458ed606f8 100644<br />--- a/include/vlc_aout.h<br />+++ b/include/vlc_aout.h<br />@@ -257,6 +257,15 @@ VLC_API char *aout_DeviceGet (audio_output_t *);<br /> VLC_API int aout_DeviceSet (audio_output_t *, const char *);<br /> VLC_API int aout_DevicesList (audio_output_t *, char ***, char ***);<br /> <br />+static inline void aout_SetDefaultPhysicalChannels(audio_sample_format_t *fmt)<br />+{<br />+    fmt->i_physical_channels = 0;<br />+    for (int i = 0; i < fmt->i_channels && i < AOUT_CHAN_MAX; ++i)<br />+        fmt->i_physical_channels |= pi_vlc_chan_order_wg4[i];<br />+    fmt->i_original_channels = fmt->i_physical_channels;<br />+    aout_FormatPrepare(fmt);<br />+}<br />+<br /> /**<br />  * Report change of configured audio volume to the core and UI.<br />  */</pre></blockquote></div><br clear="all">That does not seem like a sane set of defaults, which makes me suspect this is useless.<br>
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</body></html>