aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/sound.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-01-04 14:14:02 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:00:45 +0100
commit9ff8c3bb25422e100801f90c17b9c21118920cfd (patch)
tree5715f3cc08893ed86dfc2514c93797d12e24d461 /src/common/sound.h
parentd54d3ac2654844c7b8e4ee67752941c9037d5f42 (diff)
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.
Diffstat (limited to 'src/common/sound.h')
-rw-r--r--src/common/sound.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/sound.h b/src/common/sound.h
index b516fdf..45eb2c0 100644
--- a/src/common/sound.h
+++ b/src/common/sound.h
@@ -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);