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

Method sampleRate

src/core/AudioContext.cpp:685–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685float AudioContext::sampleRate() const
686{
687 // sampleRate is called during AudioNode construction to initialize the
688 // scheduler, but DeviceNodes are not scheduled.
689 // during construction of DeviceNodes, the device_callback will not yet be
690 // ready, so bail out.
691 if (!device_callback)
692 return 0;
693
694 return device_callback->getSamplingInfo().sampling_rate;
695}
696
697void AudioContext::startOfflineRendering()
698{

Callers 15

processMethod · 0.45
RecorderNodeMethod · 0.45
PolyBLEPNodeMethod · 0.45
processPolyBLEPMethod · 0.45
updateMethod · 0.45
processMethod · 0.45
processMethod · 0.45
setGrainSourceMethod · 0.45
process_oscillatorMethod · 0.45
StereoPannerNodeMethod · 0.45
startMethod · 0.45
scheduleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected