summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-11 18:41:32 -0400
committerDavid Robillard <d@drobilla.net>2024-10-11 18:41:38 -0400
commita80c17dc0f023dd82cb17c95bf70653a70a858af (patch)
tree6cee28f0c3c8a21e8bd5466ab417ea481aa5ade2 /src
parent1ef508b8259f91015570d28ccd47139fe6ddbfcc (diff)
downloadpatchage-a80c17dc0f023dd82cb17c95bf70653a70a858af.tar.gz
patchage-a80c17dc0f023dd82cb17c95bf70653a70a858af.tar.bz2
patchage-a80c17dc0f023dd82cb17c95bf70653a70a858af.zip
Fix function shadowing
Diffstat (limited to 'src')
-rw-r--r--src/AlsaDriver.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp
index 20f86f6..8424adf 100644
--- a/src/AlsaDriver.cpp
+++ b/src/AlsaDriver.cpp
@@ -392,16 +392,16 @@ AlsaDriver::disconnect(const PortID& tail_id, const PortID& head_id)
bool
AlsaDriver::create_refresh_port()
{
- snd_seq_port_info_t* port_info = nullptr;
- snd_seq_port_info_alloca(&port_info);
- snd_seq_port_info_set_name(port_info, "System Announcement Receiver");
- snd_seq_port_info_set_type(port_info, SND_SEQ_PORT_TYPE_APPLICATION);
- snd_seq_port_info_set_capability(port_info,
+ snd_seq_port_info_t* info = nullptr;
+ snd_seq_port_info_alloca(&info);
+ snd_seq_port_info_set_name(info, "System Announcement Receiver");
+ snd_seq_port_info_set_type(info, SND_SEQ_PORT_TYPE_APPLICATION);
+ snd_seq_port_info_set_capability(info,
SND_SEQ_PORT_CAP_WRITE |
SND_SEQ_PORT_CAP_SUBS_WRITE |
SND_SEQ_PORT_CAP_NO_EXPORT);
- int ret = snd_seq_create_port(_seq, port_info);
+ int ret = snd_seq_create_port(_seq, info);
if (ret) {
_log.error(
fmt::format("[ALSA] Error creating port ({})", snd_strerror(ret)));
@@ -410,7 +410,7 @@ AlsaDriver::create_refresh_port()
// Subscribe the port to the system announcer
ret = snd_seq_connect_from(_seq,
- snd_seq_port_info_get_port(port_info),
+ snd_seq_port_info_get_port(info),
SND_SEQ_CLIENT_SYSTEM,
SND_SEQ_PORT_SYSTEM_ANNOUNCE);
if (ret) {