FreeBSD Bugzilla – Attachment 169029 Details for
Bug 208570
multimedia/qt5-multimedia: ALSA aliases not supported
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch adding ALSA alises to the available devices.
qt5-multimedia-aliases.patch (text/plain), 1.58 KB, created by
Stephen Hurd
on 2016-04-06 09:17:44 UTC
(
hide
)
Description:
Patch adding ALSA alises to the available devices.
Filename:
MIME Type:
Creator:
Stephen Hurd
Created:
2016-04-06 09:17:44 UTC
Size:
1.58 KB
patch
obsolete
>376a377,427 >> >> // Now find aliases... >> int res; >> snd_config_iterator_t pos, next; >> snd_config_t *top, *node, *tp; >> snd_pcm_t *pcm; >> snd_pcm_stream_t st; >> const char *tps, *ids, **ig; >> static const char *ignore[] = {"hw", "plughw", "plug", "dsnoop", "tee", >> "file", "null", "shm", "cards", "rate_convert", NULL}; >> >> // Populate snd_config... >> if (snd_config == NULL) >> snd_config_update(); >> if (snd_config != NULL) { >> switch (mode) { >> case QAudio::AudioInput: >> st = SND_PCM_STREAM_CAPTURE; >> break; >> case QAudio::AudioOutput: >> st = SND_PCM_STREAM_PLAYBACK; >> break; >> default: >> goto bad_mode; >> } >> // Find "pcm" nodes... >> if ((res = snd_config_search(snd_config, "pcm", &top)) >= 0) { >> for (pos = snd_config_iterator_first(top), next = snd_config_iterator_next(pos); >> pos != snd_config_iterator_end(top); >> pos = next, next = snd_config_iterator_next(pos)) { >> node = snd_config_iterator_entry(pos); >> if (snd_config_search(node, "type", &tp) < 0) >> continue; >> snd_config_get_string(tp, &tps); >> snd_config_get_id(node, &ids); >> for (ig = ignore; *ig; ig++) { >> if (strcmp(*ig, ids) == 0) >> break; >> } >> if (*ig) >> continue; >> // Ensure it's available... >> if (snd_pcm_open(&pcm, ids, st, 0)) >> continue; >> snd_pcm_close(pcm); >> QString deviceName = QLatin1String(ids); >> devices.append(deviceName.toLocal8Bit().constData()); >> } >> } >> } >> bad_mode: >387c438 >< if (devices.size() > 0) >--- >> if (devices.size() > 0 && !devices.contains("default"))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 208570
:
169029
|
169043
|
171369
|
171561