aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-04-21 20:26:29 -0700
committerChris Robinson <[email protected]>2014-04-21 20:26:29 -0700
commitad71565e458ab78f08d83a5c87313a4b71c5f2ad (patch)
tree669ab19ca2642af684dd24d98ff2d4552caf2ff7 /Alc/backends/alsa.c
parentca1008571e21d9c641d3b92a7e9ec8a0e087e20d (diff)
Trace the device name being opened in ALSA and PulseAudio
Diffstat (limited to 'Alc/backends/alsa.c')
-rw-r--r--Alc/backends/alsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c
index 70801aa8..31f152f3 100644
--- a/Alc/backends/alsa.c
+++ b/Alc/backends/alsa.c
@@ -637,6 +637,7 @@ static ALCenum ALCplaybackAlsa_open(ALCplaybackAlsa *self, const ALCchar *name)
driver = GetConfigValue("alsa", "device", "default");
}
+ TRACE("Opening device \"%s\"\n", driver);
err = snd_pcm_open(&self->pcmHandle, driver, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK);
if(err < 0)
{
@@ -966,6 +967,7 @@ static ALCenum ALCcaptureAlsa_open(ALCcaptureAlsa *self, const ALCchar *name)
driver = GetConfigValue("alsa", "capture", "default");
}
+ TRACE("Opening device \"%s\"\n", driver);
err = snd_pcm_open(&self->pcmHandle, driver, SND_PCM_STREAM_CAPTURE, SND_PCM_NONBLOCK);
if(err < 0)
{