1 2 3 #define MAX_PA_DEVICES 128 4 5 extern int portaudio_active_flag; 6 extern char *sndtype[4]; 7 8 void set_portaudio(int sound_type, int *line); 9 void close_portaudio_rxda(void); 10 void open_portaudio_rxda(void); 11 void close_portaudio_rxad(void); 12 void open_portaudio_rxad(void); 13 void pa_rx_input(void); 14 int pa_get_device_info (int n, 15 int sound_type, 16 void *pa_device_name, 17 void *pa_device_hostapi, 18 double *pa_device_max_speed, 19 double *pa_device_min_speed, 20 int *pa_device_max_bytes, 21 int *pa_device_min_bytes, 22 int *pa_device_max_channels, 23 int *pa_device_min_channels ); 24 int pa_get_valid_samplerate(int n, int mode, int *line,unsigned int *new_sample_rate); 25 26 27