Rework on audio interface
Sound instance is now called audio instance and uses funcation pointers. This gives a clean interface to be exchanged with other technologies, linke SDR.
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
|
||||
void *sound_open(const char *device, int samplerate);
|
||||
void *sound_open(const char *audiodev, double *tx_frequency, double *rx_frequency, int channels, int samplerate);
|
||||
void sound_close(void *inst);
|
||||
int sound_write(void *inst, int16_t **samples, int num, int channels);
|
||||
int sound_read(void *inst, int16_t **samples, int num, int channels);
|
||||
int sound_get_inbuffer(void *inst);
|
||||
int sound_is_stereo_capture(void *inst);
|
||||
int sound_is_stereo_playback(void *inst);
|
||||
|
||||
|
Reference in New Issue
Block a user