Concrete Voice for sample playback.

Depending on the size of the specified file, playback will either be done in-memory (with BufferPlayerNode ) or streaming (with FilePlayerNode ). The maximum frames for in-memory playback can be specified with Voice::Options::maxFramesForBufferPlayback() Create with Voice::create( const SourceFileRef &sourceFile, const Options &options )

Public Member Functions

  • void
    setVolume (float volume)
  • void
    setPan (float pos)
  • float
    getVolume () const
  • float
    getPan () const

Static Public Member Functions

Protected Member Functions

  • VoiceSamplePlayerNode (const SourceFileRef &sourceFile, const Options &options)

Protected Attributes