Set the direction of the audio buffer of this frame
| 816 | |
| 817 | /// Set the direction of the audio buffer of this frame |
| 818 | void Frame::SetAudioDirection(bool is_increasing) { |
| 819 | if (audio && !audio_is_increasing && is_increasing) { |
| 820 | // Forward audio buffer |
| 821 | audio->reverse(0, audio->getNumSamples()); |
| 822 | } else if (audio && audio_is_increasing && !is_increasing) { |
| 823 | // Reverse audio buffer |
| 824 | audio->reverse(0, audio->getNumSamples()); |
| 825 | } |
| 826 | audio_is_increasing = is_increasing; |
| 827 | } |
| 828 | |
| 829 | // Add audio samples to a specific channel |
| 830 | void Frame::AddAudio(bool replaceSamples, int destChannel, int destStartSample, const float* source, int numSamples, float gainToApplyToSource = 1.0f) { |
no outgoing calls
no test coverage detected