Open sound device for capture or playback only, if full duplex is not required

This commit is contained in:
Andreas Eversberg
2024-03-15 16:30:04 +01:00
parent ce58b765f5
commit b613123291
17 changed files with 125 additions and 81 deletions

View File

@@ -307,7 +307,7 @@ int main(int argc, char *argv[])
#ifdef HAVE_ALSA
/* init sound */
audio = sound_open(dsp_audiodev, NULL, NULL, NULL, 1, 0.0, dsp_samplerate, dsp_buffer, 1.0, 1.0, 4000.0, 2.0);
audio = sound_open(SOUND_DIR_PLAY, dsp_audiodev, NULL, NULL, NULL, 1, 0.0, dsp_samplerate, dsp_buffer, 1.0, 1.0, 4000.0, 2.0);
if (!audio) {
LOGP(DBNETZ, LOGL_ERROR, "No sound device!\n");
goto exit;