| 567 | struct ex_microphone_loopback : public labsound_example |
| 568 | { |
| 569 | virtual void play(int argc, char ** argv) override |
| 570 | { |
| 571 | const auto defaultAudioDeviceConfigurations = GetDefaultAudioDeviceConfiguration(true); |
| 572 | context = lab::MakeRealtimeAudioContext(defaultAudioDeviceConfigurations.second, defaultAudioDeviceConfigurations.first); |
| 573 | |
| 574 | std::shared_ptr<AudioHardwareInputNode> input; |
| 575 | { |
| 576 | ContextRenderLock r(context.get(), "ex_microphone_loopback"); |
| 577 | input = lab::MakeAudioHardwareInputNode(r); |
| 578 | context->connect(context->device(), input, 0, 0); |
| 579 | } |
| 580 | |
| 581 | Wait(10000); |
| 582 | } |
| 583 | }; |
| 584 | |
| 585 | //////////////////////////////// |
nothing calls this directly
no test coverage detected