openMSX
sound
ResampleTrivial.cc
Go to the documentation of this file.
1
#include "
ResampleTrivial.hh
"
2
#include "
ResampledSoundDevice.hh
"
3
#include <cassert>
4
5
namespace
openmsx
{
6
7
ResampleTrivial::ResampleTrivial
(
ResampledSoundDevice
& input_)
8
:
ResampleAlgo
(input_)
9
{
10
}
11
12
bool
ResampleTrivial::generateOutputImpl
(
float
* dataOut,
size_t
num,
13
EmuTime::param
/*time*/
)
14
{
15
getEmuClock
() += num;
16
return
input
.
generateInput
(dataOut, num);
17
}
18
19
}
// namespace openmsx
ResampleTrivial.hh
ResampledSoundDevice.hh
openmsx::ResampleAlgo
Definition
ResampleAlgo.hh:12
openmsx::ResampleAlgo::input
ResampledSoundDevice & input
Definition
ResampleAlgo.hh:32
openmsx::ResampleAlgo::getEmuClock
DynamicClock & getEmuClock() const
Definition
ResampleAlgo.hh:27
openmsx::ResampleTrivial::ResampleTrivial
ResampleTrivial(ResampledSoundDevice &input)
Definition
ResampleTrivial.cc:7
openmsx::ResampleTrivial::generateOutputImpl
bool generateOutputImpl(float *dataOut, size_t num, EmuTime::param time) override
Definition
ResampleTrivial.cc:12
openmsx::ResampledSoundDevice
Definition
ResampledSoundDevice.hh:20
openmsx::ResampledSoundDevice::generateInput
bool generateInput(float *buffer, size_t num)
Note: To enable various optimizations (like SSE), this method is allowed to generate up to 3 extra sa...
Definition
ResampledSoundDevice.cc:46
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
Generated on Sat Dec 21 2024 14:13:52 for openMSX by
1.9.8