Base Node class for sampled audio playback. Can do operations like seek and loop.

SamplePlayerNode itself doesn't process any audio, but contains the common interface for InputNode 's that do. The ChannelMode is set to Node::ChannelMode::SPECIED and it always matches the sample's number of channels (or is equal to 1 if there is no source).

See Also

BufferPlayerNode , FilePlayerNode


Enums


Public Member Functions

  • ~SamplePlayerNode ()

Protected Member Functions

  • SamplePlayerNode (const Format &format=Format())
  • disconnectInput (const NodeRef &input)
  • disconnectOutput (const NodeRef &output)
  • configureConnections ()
  • setupProcessWithSumming ()
  • notifyConnectionsDidChange ()
  • bool
    inputChannelsAreUnequal () const
  • initializeImpl ()
  • uninitializeImpl ()
  • getSummingBuffer ()
  • getSummingBuffer () const

Protected Attributes

  • size_t
    mNumFrames
  • std::atomic< size_t >
    mReadPos
  • std::atomic< size_t >
    mLoopBegin
  • std::atomic< size_t >
    mLoopEnd
  • std::atomic< bool >
    mLoop
  • std::atomic< bool >
    mIsEof