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

Method play

examples/src/Examples.hpp:569–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567struct 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////////////////////////////////

Callers

nothing calls this directly

Calls 6

MakeRealtimeAudioContextFunction · 0.85
getMethod · 0.80
deviceMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected