Exemplo n.º 1
0
 private static extern uint INTERNAL_OpenAudioDevice(
     byte[] device,
     int iscapture,
     ref AudioSpec desired,
     out AudioSpec obtained,
     int allowed_changes
     );
Exemplo n.º 2
0
 private static extern IntPtr INTERNAL_LoadWAV_RW(
     IntPtr src,
     int freesrc,
     ref AudioSpec spec,
     out IntPtr audio_buf,
     out uint audio_len
     );
Exemplo n.º 3
0
 public static uint OpenAudioDevice(
     string device,
     int iscapture,
     ref AudioSpec desired,
     out AudioSpec obtained,
     int allowed_changes
     )
 {
     return(INTERNAL_OpenAudioDevice(
                UTF8_ToNative(device),
                iscapture,
                ref desired,
                out obtained,
                allowed_changes
                ));
 }
Exemplo n.º 4
0
        public static AudioSpec LoadWAV(
            string file,
            ref AudioSpec spec,
            out IntPtr audio_buf,
            out uint audio_len
            )
        {
            AudioSpec result;
            IntPtr    rwops      = RWFromFile(file, "rb");
            IntPtr    result_ptr = INTERNAL_LoadWAV_RW(
                rwops,
                1,
                ref spec,
                out audio_buf,
                out audio_len
                );

            result = (AudioSpec)Marshal.PtrToStructure(
                result_ptr,
                typeof(AudioSpec)
                );
            return(result);
        }
Exemplo n.º 5
0
 public static extern int OpenAudio(
     ref AudioSpec desired,
     IntPtr obtained
     );
Exemplo n.º 6
0
 public static extern int OpenAudio(
     ref AudioSpec desired,
     out AudioSpec obtained
     );