|
| | AudioClip (VideoEngine &videoEngine) |
| |
| juce::String | getClipType () const override |
| | Used to identify the clip type to the user.
|
| |
| juce::String | getDescription () const override |
| | returns a string describing the clip.
|
| |
| juce::URL | getMediaFile () const override |
| | returns the original media file to restore
|
| |
| void | setMediaFile (const juce::URL &media) |
| |
| void | setAudioFormatReader (juce::AudioFormatReader *reader, int samplesToBuffer=48000) |
| |
| VideoFrame & | getFrame (double pts) override |
| | Returns the frame for a certain timecode.
|
| |
| bool | isFrameAvailable (double pts) const override |
| | Checks, if a frame is available.
|
| |
| void | render (juce::Graphics &view, juce::Rectangle< float > area, double pts, float rotation=0.0f, float zoom=100.0f, juce::Point< float > translation=juce::Point< float >(), float alpha=1.0f) override |
| | This is the virtual render() method for OpenGL rendering.
|
| |
| Size | getVideoSize () const override |
| | returns the pixel size of the media as a tuple.
|
| |
| double | getCurrentTimeInSeconds () const override |
| | Return the clip's read position in seconds.
|
| |
| void | prepareToPlay (int samplesPerBlockExpected, double sampleRate) override |
| |
| void | releaseResources () override |
| |
| void | getNextAudioBlock (const juce::AudioSourceChannelInfo &) override |
| |
| void | setNextReadPosition (juce::int64 samples) override |
| |
| juce::int64 | getNextReadPosition () const override |
| |
| juce::int64 | getTotalLength () const override |
| |
| bool | isLooping () const override |
| |
| void | setLooping (bool shouldLoop) override |
| |
| juce::Image | getStillImage (double seconds, Size size) override |
| | This returns a still frame on the selected position.
|
| |
| double | getLengthInSeconds () const override |
| | Returns the length of the clip in seconds.
|
| |
| bool | hasVideo () const override |
| | Returns true, if this clip will produce visual frames.
|
| |
| bool | hasAudio () const override |
| | Returns true, if this clip will produce audio.
|
| |
| std::shared_ptr< AVClip > | createCopy (StreamTypes types) override |
| | This returns a copy of the clip.
|
| |
| double | getSampleRate () const override |
| | This is the samplerate supplied from prepareToPlay and the sample rate this clip will produce audio and use as clock source.
|
| |
| | AVClip (VideoEngine &videoEngine) |
| |
| virtual | ~AVClip ()=default |
| |
| void | renderFrame (juce::Graphics &g, juce::Rectangle< float > area, VideoFrame &frame, float rotation, float zoom, juce::Point< float > translation, float alpha) |
| | Renders a frame on the OpenGLView.
|
| |
| void | setAspectType (Aspect type) |
| |
| virtual double | getFrameDurationInSeconds () const |
| | Returns the duration of a frame in seconds.
|
| |
| virtual bool | waitForSamplesReady (int samples, int timeout=1000) |
| | When rendering non realtime (bounce), use this to wait for background threads to read ahead.
|
| |
| virtual bool | waitForFrameReady (double pts, int timeout=1000) |
| | When rendering non realtime (bounce), use this to wait for background threads to read ahead.
|
| |
| const ParameterMap & | getVideoParameters () |
| |
| const ParameterMap & | getAudioParameters () |
| |
| virtual juce::TimeSliceClient * | getBackgroundJob () |
| |
| VideoEngine * | getVideoEngine () const |
| |
| | TimeCodeAware ()=default |
| |
| virtual | ~TimeCodeAware ()=default |
| |
| void | addTimecodeListener (Listener *listener) |
| | Register a TimecodeListener to be notified, when the visual frame changes.
|
| |
| void | removeTimecodeListener (Listener *listener) |
| | Unregister a TimecodeListener.
|
| |
The AudioClip plays back an audio file inside the video engine.
It wraps around a JUCE AudioFormatReaderSource.
When you created a shared_ptr of an AudioClip, call manageLifeTime() on the VideoEngine, that will add it to the auto release pool and register possible background jobs with the TimeSliceThreads.