diff options
author | Vito Caputo <[email protected]> | 2015-11-05 23:01:48 -0800 |
---|---|---|
committer | Vito Caputo <[email protected]> | 2015-11-05 23:01:48 -0800 |
commit | 3b54e530f619d30ddd6111d62fcff119947dc149 (patch) | |
tree | bc27cf3489e472b548a1e6f17ad10d682c9bbff8 /src/cubeb_alsa.c | |
parent | 2d3321c3f9d4fffa6061ee565882b766d733641b (diff) | |
download | cubeb-3b54e530f619d30ddd6111d62fcff119947dc149.tar.gz cubeb-3b54e530f619d30ddd6111d62fcff119947dc149.zip |
alsa: use CUBEB_ALSA_PCM_NAME everywhere
Diffstat (limited to 'src/cubeb_alsa.c')
-rw-r--r-- | src/cubeb_alsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_alsa.c b/src/cubeb_alsa.c index 3840799..d9d26e7 100644 --- a/src/cubeb_alsa.c +++ b/src/cubeb_alsa.c @@ -963,7 +963,7 @@ alsa_get_preferred_sample_rate(cubeb * ctx, uint32_t * rate) { /* get a pcm, disabling resampling, so we get a rate the * hardware/dmix/pulse/etc. supports. */ - r = snd_pcm_open(&pcm, "default", SND_PCM_STREAM_PLAYBACK | SND_PCM_NO_AUTO_RESAMPLE, 0); + r = snd_pcm_open(&pcm, CUBEB_ALSA_PCM_NAME, SND_PCM_STREAM_PLAYBACK | SND_PCM_NO_AUTO_RESAMPLE, 0); if (r < 0) { return CUBEB_ERROR; } |