sink: Make auto device name a constant
This commit is contained in:
parent
d269beab0d
commit
7d642b25e9
4 changed files with 5 additions and 3 deletions
|
@ -42,7 +42,7 @@ SDL2Sink::SDL2Sink(std::string device_name) : impl(std::make_unique<Impl>()) {
|
|||
SDL_zero(obtained_audiospec);
|
||||
|
||||
const char* device = nullptr;
|
||||
if (device_name != "auto" && !device_name.empty()) {
|
||||
if (device_name != auto_device_name && !device_name.empty()) {
|
||||
device = device_name.c_str();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue