MCPcopy Create free account
hub / github.com/ValveSoftware/steam-audio / write

Method write

core/src/core/audio_buffer.cpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void AudioBuffer::write(const float* in)
70{
71 for (auto i = 0, index = 0; i < mNumSamples; ++i)
72 {
73 for (auto j = 0; j < mNumChannels; ++j, ++index)
74 {
75 mData[j][i] = in[index];
76 }
77 }
78}
79
80void AudioBuffer::scale(float volume)
81{

Callers 8

save_output_audioFunction · 0.80
EmbedKernels.pyFile · 0.80
loadMethod · 0.80
download_fileFunction · 0.80
download_fileFunction · 0.80
download_fileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected