openMSX
Classes | Public Member Functions | List of all members
openmsx::WavData Class Reference

#include <WavData.hh>

Public Member Functions

 WavData ()=default
 Construct empty wav.
 
template<typename Filter = NoFilter>
 WavData (const std::string &filename, Filter filter={})
 Construct from .wav file and optional filter.
 
template<typename Filter = NoFilter>
 WavData (File file, Filter filter={})
 
unsigned getFreq () const
 
size_t getSize () const
 
int16_t getSample (size_t pos) const
 

Detailed Description

Definition at line 20 of file WavData.hh.

Constructor & Destructor Documentation

◆ WavData() [1/3]

openmsx::WavData::WavData ( )
default

Construct empty wav.

◆ WavData() [2/3]

template<typename Filter = NoFilter>
openmsx::WavData::WavData ( const std::string &  filename,
Filter  filter = {} 
)
inlineexplicit

Construct from .wav file and optional filter.

Definition at line 33 of file WavData.hh.

◆ WavData() [3/3]

template<typename Filter >
openmsx::WavData::WavData ( File  file,
Filter  filter = {} 
)
inlineexplicit

Member Function Documentation

◆ getFreq()

unsigned openmsx::WavData::getFreq ( ) const
inline

◆ getSample()

int16_t openmsx::WavData::getSample ( size_t  pos) const
inline

◆ getSize()

size_t openmsx::WavData::getSize ( ) const
inline

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