diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2019-12-05 17:24:30 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2019-12-08 17:26:44 +0100 |
commit | 150a77b69d7a91a300540606b4eccf382e0caf08 (patch) | |
tree | 429558100bc964c534e5317f04ba118765e4ae3b /src/radio/radio.c | |
parent | c2f14834e5ae683cc944c6c0b398d83caed656a9 (diff) |
Add support for AM to libmobile and libsdr
Diffstat (limited to 'src/radio/radio.c')
-rw-r--r-- | src/radio/radio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radio/radio.c b/src/radio/radio.c index ee85805..c1be7e7 100644 --- a/src/radio/radio.c +++ b/src/radio/radio.c @@ -98,7 +98,7 @@ int radio_init(radio_t *radio, int latspl, int samplerate, const char *tx_wave_f /* open audio device */ radio->tx_audio_samplerate = 48000; radio->tx_audio_channels = (stereo) ? 2 : 1; - radio->tx_sound = sound_open(tx_audiodev, NULL, NULL, radio->tx_audio_channels, 0.0, radio->tx_audio_samplerate, radio->latspl, 1.0, 0.0); + radio->tx_sound = sound_open(tx_audiodev, NULL, NULL, NULL, radio->tx_audio_channels, 0.0, radio->tx_audio_samplerate, radio->latspl, 1.0, 0.0, 2.0); if (!radio->tx_sound) { rc = -EIO; PDEBUG(DRADIO, DEBUG_ERROR, "Failed to open sound device!\n"); @@ -164,7 +164,7 @@ int radio_init(radio_t *radio, int latspl, int samplerate, const char *tx_wave_f if (radio->tx_sound && !strcmp(tx_audiodev, rx_audiodev)) radio->rx_sound = radio->tx_sound; else - radio->rx_sound = sound_open(rx_audiodev, NULL, NULL, radio->rx_audio_channels, 0.0, radio->rx_audio_samplerate, radio->latspl, 1.0, 0.0); + radio->rx_sound = sound_open(rx_audiodev, NULL, NULL, NULL, radio->rx_audio_channels, 0.0, radio->rx_audio_samplerate, radio->latspl, 1.0, 0.0, 2.0); if (!radio->rx_sound) { rc = -EIO; PDEBUG(DRADIO, DEBUG_ERROR, "Failed to open sound device!\n"); |