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

Function MakeRealtimeAudioContext

src/extended/LabSound.cpp:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::unique_ptr<lab::AudioContext> MakeRealtimeAudioContext(
51 const AudioStreamConfig & outputConfig, const AudioStreamConfig & inputConfig)
52{
53 LOG_TRACE("MakeRealtimeAudioContext()");
54
55 std::unique_ptr<AudioContext> ctx(new lab::AudioContext(false));
56 ctx->setDeviceNode(std::make_shared<lab::AudioHardwareDeviceNode>(*ctx.get(), outputConfig, inputConfig));
57 ctx->lazyInitialize();
58 return ctx;
59}
60
61std::unique_ptr<lab::AudioContext> MakeOfflineAudioContext(
62 const AudioStreamConfig & offlineConfig, double recordTimeMilliseconds)

Callers 15

playMethod · 0.85
playMethod · 0.85
playMethod · 0.85
playMethod · 0.85
playMethod · 0.85
playMethod · 0.85
playMethod · 0.85
playMethod · 0.85
playMethod · 0.85
playMethod · 0.85
playMethod · 0.85
playMethod · 0.85

Calls 3

setDeviceNodeMethod · 0.80
getMethod · 0.80
lazyInitializeMethod · 0.80

Tested by

no test coverage detected