3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2008 Christian Schoenebeck * |
* Copyright (C) 2005 - 2014 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
595 |
|
|
596 |
optional<String> AudioOutputDeviceAsio::ParameterCard::DefaultAsString(std::map<String,String> Parameters) { |
optional<String> AudioOutputDeviceAsio::ParameterCard::DefaultAsString(std::map<String,String> Parameters) { |
597 |
std::vector<String> cards = PossibilitiesAsString(Parameters); |
std::vector<String> cards = PossibilitiesAsString(Parameters); |
598 |
if (cards.empty()) throw Exception("AudioOutputDeviceAsio: Can't find any card"); |
if (cards.empty()) throw Exception( |
599 |
|
"AudioOutputDeviceAsio: Can't find any ASIO-capable sound card. Make " |
600 |
|
"sure you have an ASIO driver installed for your sound device. If you " |
601 |
|
"are using a consumer sound card that does not provide an ASIO driver " |
602 |
|
"to be installed, then consider installing an alternative like ASIO4ALL." |
603 |
|
); |
604 |
|
|
605 |
// If currentAsioDriverName is empty then return the first card, |
// If currentAsioDriverName is empty then return the first card, |
606 |
// otherwise return the currentAsioDriverName. This avoids closing |
// otherwise return the currentAsioDriverName. This avoids closing |