Exemple #1
0
        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);
Exemple #3
0
 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);
Exemple #4
0
 public static extern int snd_pcm_open(IntPtr* playback_handle, string card, snd_pcm_stream_t device, int mode);
Exemple #5
0
        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);
Exemple #8
0
 int snd_pcm_open(out IntPtr /* snd_pcm_t ** */ pcm,
                  [MarshalAs(UnmanagedType.LPStr)]
                  string name,
                  snd_pcm_stream_t stream, int mode);
Exemple #9
0
 public static extern int snd_pcm_open(ref IntPtr pcm, string name, snd_pcm_stream_t stream, int mode);