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())
  • void
    disconnectInput (const NodeRef &input)
  • void
    disconnectOutput (const NodeRef &output)
  • void
    configureConnections ()
  • void
    setupProcessWithSumming ()
  • void
    notifyConnectionsDidChange ()
  • bool
    inputChannelsAreUnequal () const
  • void
    initializeImpl ()
  • void
    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