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