| 180 | } |
| 181 | |
| 182 | std::vector<std::string> getAvailableDevices() |
| 183 | { |
| 184 | std::vector<std::string> result; |
| 185 | const ALCchar* devices = alcGetString(nullptr, ALC_ALL_DEVICES_SPECIFIER); |
| 186 | const char* ptr = devices; |
| 187 | do |
| 188 | { |
| 189 | result.push_back(std::string(ptr)); |
| 190 | ptr += result.back().size() + 1; |
| 191 | } while (*ptr != '\0'); |
| 192 | return result; |
| 193 | } |
| 194 | |
| 195 | void initialize() |
| 196 | { |