|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Public Member Functions | |
| AudioSourceOwningTransportSource (PositionableAudioSource *s, double sr) | |
Public Member Functions inherited from juce::AudioTransportSource | |
| AudioTransportSource () | |
| Creates an AudioTransportSource. | |
| ~AudioTransportSource () override | |
| Destructor. | |
| void | setSource (PositionableAudioSource *newSource, int readAheadBufferSize=0, TimeSliceThread *readAheadThread=nullptr, double sourceSampleRateToCorrectFor=0.0, int maxNumChannels=2) |
| Sets the reader that is being used as the input source. | |
| void | setPosition (double newPosition) |
| Changes the current playback position in the source stream. | |
| double | getCurrentPosition () const |
| Returns the position that the next data block will be read from. | |
| double | getLengthInSeconds () const |
| Returns the stream's length in seconds. | |
| bool | hasStreamFinished () const noexcept |
| Returns true if the player has stopped because its input stream ran out of data. | |
| void | start () |
| Starts playing (if a source has been selected). | |
| void | stop () |
| Stops playing. | |
| bool | isPlaying () const noexcept |
| Returns true if it's currently playing. | |
| void | setGain (float newGain) noexcept |
| Changes the gain to apply to the output. | |
| float | getGain () const noexcept |
| Returns the current gain setting. | |
| void | prepareToPlay (int samplesPerBlockExpected, double sampleRate) override |
| Implementation of the AudioSource method. | |
| void | releaseResources () override |
| Implementation of the AudioSource method. | |
| void | getNextAudioBlock (const AudioSourceChannelInfo &) override |
| Implementation of the AudioSource method. | |
| void | setNextReadPosition (int64 newPosition) override |
| Implements the PositionableAudioSource method. | |
| int64 | getNextReadPosition () const override |
| Implements the PositionableAudioSource method. | |
| int64 | getTotalLength () const override |
| Implements the PositionableAudioSource method. | |
| bool | isLooping () const override |
| Implements the PositionableAudioSource method. | |
Public Member Functions inherited from juce::PositionableAudioSource | |
| ~PositionableAudioSource () override=default | |
| Destructor. | |
| virtual void | setLooping (bool shouldLoop) |
| Tells the source whether you'd like it to play in a loop. | |
Public Member Functions inherited from juce::AudioSource | |
| virtual | ~AudioSource ()=default |
| Destructor. | |
Public Member Functions inherited from juce::ChangeBroadcaster | |
| ChangeBroadcaster () noexcept | |
| Creates an ChangeBroadcaster. | |
| virtual | ~ChangeBroadcaster () |
| Destructor. | |
| void | addChangeListener (ChangeListener *listener) |
| Registers a listener to receive change callbacks from this broadcaster. | |
| void | removeChangeListener (ChangeListener *listener) |
| Unregisters a listener from the list. | |
| void | removeAllChangeListeners () |
| Removes all listeners from the list. | |
| void | sendChangeMessage () |
| Causes an asynchronous change message to be sent to all the registered listeners. | |
| void | sendSynchronousChangeMessage () |
| Sends a synchronous change message to all the registered listeners. | |
| void | dispatchPendingMessages () |
| If a change message has been sent but not yet dispatched, this will call sendSynchronousChangeMessage() to make the callback immediately. | |
Additional Inherited Members | |
Protected Member Functions inherited from juce::PositionableAudioSource | |
| PositionableAudioSource ()=default | |
| Creates the PositionableAudioSource. | |
Protected Member Functions inherited from juce::AudioSource | |
| AudioSource ()=default | |
| Creates an AudioSource. | |
Definition at line 30 of file juce_SoundPlayer.cpp.
| juce::AudioSourceOwningTransportSource::AudioSourceOwningTransportSource | ( | PositionableAudioSource * | s, |
| double | sr | ||
| ) |
Definition at line 32 of file juce_SoundPlayer.cpp.
| juce::AudioSourceOwningTransportSource::~AudioSourceOwningTransportSource | ( | ) |
Definition at line 37 of file juce_SoundPlayer.cpp.