1 /*** 2 This file is part of snapcast 3 Copyright (C) 2014-2020 Johannes Pohl 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 ***/ 18 19 #ifndef PCM_DEVICE_HPP 20 #define PCM_DEVICE_HPP 21 22 #include <string> 23 24 namespace player 25 { 26 27 static constexpr char DEFAULT_DEVICE[] = "default"; 28 29 struct PcmDevice 30 { PcmDeviceplayer::PcmDevice31 PcmDevice() : idx(-1), name(DEFAULT_DEVICE){}; 32 PcmDeviceplayer::PcmDevice33 PcmDevice(int idx, const std::string& name, const std::string& description = "") : idx(idx), name(name), description(description){}; 34 35 int idx; 36 std::string name; 37 std::string description; 38 }; 39 40 } // namespace player 41 42 #endif 43