7#ifndef __AUDIO_RTAUDIO_DEVICE_H__
8#define __AUDIO_RTAUDIO_DEVICE_H__
10#include "zrythm-config.h"
14# define RTAUDIO_DEVICE_BUFFER_SIZE 32000
17# include <rtaudio_c.h>
34 RTAUDIO_DEVICE_FLOW_OUTPUT,
35 RTAUDIO_DEVICE_FLOW_INPUT,
41typedef struct RtAudioDevice
46 unsigned int channel_idx;
75 ZixSem audio_ring_sem;
82 const char * device_name,
83 unsigned int device_id,
84 unsigned int channel_idx,
96rtaudio_device_open (RtAudioDevice * self,
int start);
104rtaudio_device_close (RtAudioDevice * self,
int free);
107rtaudio_device_start (RtAudioDevice * self);
110rtaudio_device_stop (RtAudioDevice * self);
113rtaudio_device_print_dev_info (rtaudio_device_info_t * nfo);
116rtaudio_device_free (RtAudioDevice * self);
Must ONLY be created via port_new()