public SoundPcm(string name, snd_pcm_stream_t streamType, int mode) { int error = AlsaNativeMethods.snd_pcm_open(out _pcmPtr, name, streamType, mode); if (error < 0) { throw new AlsaNativeError(error, nameof(AlsaNativeMethods.snd_pcm_open)); } }
internal static extern int snd_pcm_open(out IntPtr pcm, string name, snd_pcm_stream_t stream, int mode);
public static extern int snd_pcm_open_lconf(IntPtr* playback_handle, string name, snd_pcm_stream_t stream, int mode, out snd_config_t lconf);
public static extern int snd_pcm_open(IntPtr* playback_handle, string card, snd_pcm_stream_t device, int mode);
int snd_pcm_open (out IntPtr /* snd_pcm_t ** */pcm, [MarshalAs(UnmanagedType.LPStr)] string name, snd_pcm_stream_t stream, int mode);
internal static extern int snd_pcm_open_lconf(IntPtr *playback_handle, string name, snd_pcm_stream_t stream, int mode, out snd_config_t lconf);
//[SuppressUnmanagedCodeSecurity] internal static extern int snd_pcm_open(IntPtr *playback_handle, string card, snd_pcm_stream_t device, int mode);
int snd_pcm_open(out IntPtr /* snd_pcm_t ** */ pcm, [MarshalAs(UnmanagedType.LPStr)] string name, snd_pcm_stream_t stream, int mode);
public static extern int snd_pcm_open(ref IntPtr pcm, string name, snd_pcm_stream_t stream, int mode);