mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
add some more useful defines
Add define to match all ids for nodes and params. Add define for invalid permissions
This commit is contained in:
parent
cf53ededd0
commit
043e7f24fe
25 changed files with 50 additions and 50 deletions
|
|
@ -801,14 +801,14 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp, const char *name,
|
|||
else
|
||||
pw->node_name = strdup(node_name);
|
||||
|
||||
pw->target = SPA_ID_INVALID;
|
||||
pw->target = PW_ID_ANY;
|
||||
if (str != NULL)
|
||||
pw->target = atoi(str);
|
||||
else {
|
||||
if (stream == SND_PCM_STREAM_PLAYBACK)
|
||||
pw->target = playback_node ? (uint32_t)atoi(playback_node) : SPA_ID_INVALID;
|
||||
pw->target = playback_node ? (uint32_t)atoi(playback_node) : PW_ID_ANY;
|
||||
else
|
||||
pw->target = capture_node ? (uint32_t)atoi(capture_node) : SPA_ID_INVALID;
|
||||
pw->target = capture_node ? (uint32_t)atoi(capture_node) : PW_ID_ANY;
|
||||
}
|
||||
|
||||
pw->main_loop = pw_thread_loop_new("alsa-pipewire", NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue