| 58 | |
| 59 | struct ex_devices : public labsound_example { |
| 60 | virtual void play(int argc, char ** argv) override final |
| 61 | { |
| 62 | const std::vector<AudioDeviceInfo> audioDevices = lab::MakeAudioDeviceList(); |
| 63 | for (auto & info : audioDevices) { |
| 64 | printf("Device %d: %s\n", info.index, info.identifier.c_str()); |
| 65 | printf(" input channels: %d\n", info.num_input_channels); |
| 66 | printf(" output channels: %d\n", info.num_output_channels); |
| 67 | printf(" default sample rate: %f\n", info.nominal_samplerate); |
| 68 | printf(" is default input: %s\n", info.is_default_input ? "true" : "false"); |
| 69 | printf(" is default output: %s\n", info.is_default_output ? "true" : "false"); |
| 70 | } |
| 71 | } |
| 72 | }; |
| 73 | |
| 74 |
nothing calls this directly
no test coverage detected