Esempio n. 1
0
 /// <summary>
 /// Free buffers returned by capture for audio
 /// </summary>
 /// <param name="p_instance"></param>
 /// <param name="p_audio_data"></param>
 public static void NDIlib_recv_free_audio(IntPtr p_instance, ref NDIlib_audio_frame_t p_audio_data)
 {
     if (Is64Bit)
     {
         NDIlib64_recv_free_audio(p_instance, ref p_audio_data);
     }
     else
     {
         NDIlib32_recv_free_audio(p_instance, ref p_audio_data);
     }
 }
Esempio n. 2
0
 public static void NDIlib_util_audio_to_interleaved_32f(ref NDIlib_audio_frame_t p_src, ref NDIlib_audio_frame_interleaved_32f_t p_dst)
 {
     if (Is64Bit)
     {
         NDIlib64_util_audio_to_interleaved_32f(ref p_src, ref p_dst);
     }
     else
     {
         NDIlib32_util_audio_to_interleaved_32f(ref p_src, ref p_dst);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Same as NDIlib_recv_capture, but only asks for audio
 /// </summary>
 /// <param name="p_instance"></param>
 /// <param name="p_audio_data"></param>
 /// <param name="timeout_in_ms"></param>
 /// <returns></returns>
 public static NDIlib_frame_type_e NDIlib_recv_capture(
     IntPtr p_instance,                                      // The library instance
     ref NDIlib_audio_frame_t p_audio_data,                  // The video data received (can be null)
     uint timeout_in_ms)                                     // The ammount of time in milliseconds to wait for data.
 {
     if (Is64Bit)
     {
         return(NDIlib64_recv_capture(p_instance, IntPtr.Zero, ref p_audio_data, IntPtr.Zero, timeout_in_ms));
     }
     else
     {
         return(NDIlib32_recv_capture(p_instance, IntPtr.Zero, ref p_audio_data, IntPtr.Zero, timeout_in_ms));
     }
 }
Esempio n. 4
0
 private static extern void NDIlib64_recv_free_audio(IntPtr p_instance, ref NDIlib_audio_frame_t p_audio_data);
Esempio n. 5
0
 private static extern NDIlib_frame_type_e NDIlib64_recv_capture(
     IntPtr p_instance,                                      // The library instance
     IntPtr p_video_data,                                    // The video data received (can be null)
     ref NDIlib_audio_frame_t p_audio_data,                  // The audio data received (can be null)
     IntPtr p_meta_data,                                     // The meta data data received (can be null)
     uint timeout_in_ms);
Esempio n. 6
0
 private static extern NDIlib_frame_type_e NDIlib32_recv_capture(
     IntPtr p_instance,                                      // The library instance
     IntPtr p_video_data,                                    // The video data received (can be null)
     ref NDIlib_audio_frame_t p_audio_data,                  // The audio data received (can be null)
     IntPtr p_meta_data,                                     // The meta data data received (can be null)
     uint timeout_in_ms);                                    // The ammount of time in milliseconds to wait for data.
Esempio n. 7
0
 private static extern void NDIlib32_util_audio_from_interleaved_32f(ref NDIlib_audio_frame_interleaved_32f_t p_src, ref NDIlib_audio_frame_t p_dst);
Esempio n. 8
0
 private static extern void NDIlib64_util_audio_from_interleaved_16s(ref NDIlib_audio_frame_interleaved_16s_t p_src, ref NDIlib_audio_frame_t p_dst);