AME
ame::wav::WavPlayer< BytePointerType > Class Template Reference

WAVE file player. More...

#include <ame_Pcm.hpp>

Public Member Functions

constexpr WavPlayer (const WavReader< BytePointerType > &reader)
 
void play ()
 Start (or re-start) playing.
 
void pause ()
 Pause.
 
void skipToHome ()
 Skip to home.
 
template<typename FloatType , size_t N>
void process (AudioBlockView< FloatType, N > &block)
 Add to sound to AudioBlockView if playing. More...
 
bool isPlaying () const noexcept
 
void setLoopPlay (bool loopPlay)
 
bool isLooping () const noexcept
 

Detailed Description

template<typename BytePointerType>
class ame::wav::WavPlayer< BytePointerType >

WAVE file player.

Template Parameters
BytePointerTypeunsigned char* (or CV-qualified)

Member Function Documentation

◆ process()

template<typename BytePointerType >
template<typename FloatType , size_t N>
void ame::wav::WavPlayer< BytePointerType >::process ( AudioBlockView< FloatType, N > &  block)
inline

Add to sound to AudioBlockView if playing.

Template Parameters
FloatTypefloat or double
Parameters
blockdest

再生停止

normalize [-1, 1]


The documentation for this class was generated from the following file: