Skip to content

Commit

Permalink
Custom port names for audioadapter
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jun 15, 2020
1 parent ce8bbeb commit 6dcc91b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/JackAudioAdapter.cpp
Expand Up @@ -173,14 +173,14 @@ int JackAudioAdapter::Open()
fOutputBufferList = new jack_default_audio_sample_t*[fAudioAdapter->GetOutputs()];

for (int i = 0; i < fAudioAdapter->GetInputs(); i++) {
snprintf(name, sizeof(name), "capture_%d", i + 1);
snprintf(name, sizeof(name), "USB_Audio_Capture_%d", i + 1);
if ((fCapturePortList[i] = jack_port_register(fClient, name, JACK_DEFAULT_AUDIO_TYPE, CaptureDriverFlags, 0)) == NULL) {
goto fail;
}
}

for (int i = 0; i < fAudioAdapter->GetOutputs(); i++) {
snprintf(name, sizeof(name), "playback_%d", i + 1);
snprintf(name, sizeof(name), "USB_Audio_Playback_%d", i + 1);
if ((fPlaybackPortList[i] = jack_port_register(fClient, name, JACK_DEFAULT_AUDIO_TYPE, PlaybackDriverFlags, 0)) == NULL) {
goto fail;
}
Expand Down

0 comments on commit 6dcc91b

Please sign in to comment.