MCPcopy Create free account
hub / github.com/LabSound/LabSound / play

Method play

examples/src/Examples.hpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59struct 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

Callers

nothing calls this directly

Calls 1

MakeAudioDeviceListFunction · 0.85

Tested by

no test coverage detected