#include <multisamplebufferplayernode.h>
Public Member Functions | |
| MultiSampleBufferPlayerNode (int channel, NodeManager &manager) | |
| std::vector< OutputPin * > | getOutputPins () |
| void | play (DiscreteTimeValue position=0, ControllerValue speed=1.) |
| void | stop () |
| void | setSpeed (ControllerValue speed) |
| void | setPosition (DiscreteTimeValue position) |
| void | setBuffer (SafePtr< MultiSampleBuffer > buffer) |
| ControllerValue | getSpeed () const |
| DiscreteTimeValue | getPosition () const |
Public Member Functions inherited from Node | |
| Node (NodeManager &manager) | |
| const std::set< OutputPin * > & | getOutputs () const |
| const std::set< InputPinBase * > & | getInputs () const |
Public Member Functions inherited from Process | |
| Process (NodeManager &nodeManager) | |
| Process (ParentProcess &parent) | |
| Process (const Process &)=delete | |
| Process & | operator= (const Process &)=delete |
| virtual | ~Process () |
| void | update () |
| NodeManager & | getNodeManager () const |
| int | getBufferSize () const |
| float | getSampleRate () const |
| DiscreteTimeValue | getSampleTime () const |
Additional Inherited Members | |
Protected Member Functions inherited from Node | |
| SampleBuffer & | getOutputBuffer (OutputPin &output) |
Protected Member Functions inherited from Process | |
| virtual void | sampleRateChanged (float sampleRate) |
| virtual void | bufferSizeChanged (int bufferSize) |
| bool | isRegisteredWithNodeManager () const |
The MultiSampleBufferPlayerNode plays back the sample from a MultiSampleBuffer. They key difference between the MultiSampleBufferPlayerNode and the BufferPlayerNode is that the MultiSampleBufferPlayerNode creates OutputPins for each channel of the MultiSampleBuffer
| MultiSampleBufferPlayerNode | ( | int | channel, |
| NodeManager & | manager | ||
| ) |
| std::vector<OutputPin*> getOutputPins | ( | ) |
The output to connect to other nodes
| DiscreteTimeValue getPosition | ( | ) | const |
| ControllerValue getSpeed | ( | ) | const |
| void play | ( | DiscreteTimeValue | position = 0, |
| ControllerValue | speed = 1. |
||
| ) |
Tells the node to start playback
| position | the starting position in the source buffer in samples |
| speed | the playbackspeed, 1.0 means 1 sample per sample, 2 means double speed, etc. |
| void setBuffer | ( | SafePtr< MultiSampleBuffer > | buffer | ) |
Sets the buffer to be played back from. Can't be called while playing!
| buffer | SafePtr to a multichannel sample buffer |
| void setPosition | ( | DiscreteTimeValue | position | ) |
Sets the current position of playback while playing.
| position | in samples |
| void setSpeed | ( | ControllerValue | speed | ) |
Set the playback speed
| speed | as a fraction of the original speed of the audio material in the buffer. |
| void stop | ( | ) |
Stops playback