chiark / gitweb /
clients/playrtp.c: Configure the backend audio device before use.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 2 May 2020 17:01:02 +0000 (18:01 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 2 May 2020 17:08:15 +0000 (18:08 +0100)
This means it stands a chance of working if your audio device has a
weird mixer channel-name.

clients/playrtp.c

index 1313a5e6fe8a0396fc98b1847d75b555b83378d4..f6e89d24391a95617bc056445c3ed1ce383a705b 100644 (file)
@@ -966,6 +966,7 @@ int main(int argc, char **argv) {
   uaudio_set_format(44100/*Hz*/, 2/*channels*/,
                     16/*bits/channel*/, 1/*signed*/);
   uaudio_set("application", "disorder-playrtp");
+  backend->configure();
   backend->start(playrtp_callback, NULL);
   if(backend->open_mixer) backend->open_mixer();
   /* We receive and convert audio data in a background thread */