openMSX
ResampleTrivial.cc
Go to the documentation of this file.
1#include "ResampleTrivial.hh"
3#include <cassert>
4
5namespace openmsx {
6
11
12bool ResampleTrivial::generateOutputImpl(float* dataOut, size_t num,
13 EmuTime::param /*time*/)
14{
15#ifdef __SSE2__
16 assert((uintptr_t(dataOut) & 15) == 0); // must be 16-byte aligned
17#endif
18 getEmuClock() += num;
19 return input.generateInput(dataOut, num);
20}
21
22} // namespace openmsx
ResampledSoundDevice & input
DynamicClock & getEmuClock() const
ResampleTrivial(ResampledSoundDevice &input)
bool generateOutputImpl(float *dataOut, size_t num, EmuTime::param time) override
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...
This file implemented 3 utility functions:
Definition Autofire.cc:9