libvlc_audio_set_channel help
Posted: 11 Nov 2010 00:09
Hello,
I am trying to toggle the libvlc_audio_set_channel from Left to Right in C#. But I am not sure I understands the vlc documents correctly. It says
libvlc_audio_set_channel (libvlc_media_player_t *p_mi, int channel)
Set current audio channel.
But isn't channels are L or R? but the parameter is an int for channel. So how can pass L or R for Left or Right channel respectively to it if it's asking for an int?
This is what I current have:
I am trying to toggle the libvlc_audio_set_channel from Left to Right in C#. But I am not sure I understands the vlc documents correctly. It says
libvlc_audio_set_channel (libvlc_media_player_t *p_mi, int channel)
Set current audio channel.
But isn't channels are L or R? but the parameter is an int for channel. So how can pass L or R for Left or Right channel respectively to it if it's asking for an int?
This is what I current have:
Code: Select all
[DllImport("libvlc", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
[SuppressUnmanagedCodeSecurity]
public static extern int libvlc_audio_set_channel(IntPtr libvlc_mediaplayer, int i_channel);