openMSX
|
#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 |
Definition at line 20 of file WavData.hh.
|
default |
Construct empty wav.
|
inlineexplicit |
Construct from .wav file and optional filter.
Definition at line 33 of file WavData.hh.
|
inlineexplicit |
Definition at line 66 of file WavData.hh.
References openmsx::File::mmap(), openmsx::MemBuffer< T, ALIGNMENT >::resize(), and xrange().
|
inline |
Definition at line 39 of file WavData.hh.
Referenced by openmsx::WavAudioInput::readSample(), TEST_CASE(), and openmsx::WavImage::WavImage().
|
inline |
Definition at line 41 of file WavData.hh.
References openmsx::MemBuffer< T, ALIGNMENT >::size().
Referenced by openmsx::WavImage::fillBuffer(), openmsx::WavImage::getSampleAt(), openmsx::WavAudioInput::readSample(), and TEST_CASE().
|
inline |
Definition at line 40 of file WavData.hh.
References openmsx::MemBuffer< T, ALIGNMENT >::size().
Referenced by openmsx::WavImage::getEndTime(), openmsx::WavAudioInput::plugHelper(), openmsx::WavAudioInput::readSample(), and TEST_CASE().