Get an array of sample data (and optional reverse the sample values)
| 312 | |
| 313 | // Get an array of sample data (and optional reverse the sample values) |
| 314 | float* 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 |
| 324 | float* Frame::GetInterleavedAudioSamples(int* sample_count) |
no test coverage detected