MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / GetAudioSamples

Method GetAudioSamples

src/Frame.cpp:314–321  ·  view source on GitHub ↗

Get an array of sample data (and optional reverse the sample values)

Source from the content-addressed store, hash-verified

312
313// Get an array of sample data (and optional reverse the sample values)
314float* Frame::GetAudioSamples(int channel) {
315
316 // Copy audio data
317 juce::AudioBuffer<float> *buffer(audio.get());
318
319 // return JUCE audio data for this channel
320 return buffer->getWritePointer(channel);
321}
322
323// Get an array of sample data (all channels interleaved together), using any sample rate
324float* Frame::GetInterleavedAudioSamples(int* sample_count)

Callers 9

apply_timemappingMethod · 0.80
AddMethod · 0.80
add_layerMethod · 0.80
GetFrameMethod · 0.80
Clip.cppFile · 0.80
FFmpegReader.cppFile · 0.80
Timeline.cppFile · 0.80
DummyReader.cppFile · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected