openMSX
ResampleTrivial.cc
Go to the documentation of this file.
1 #include "ResampleTrivial.hh"
3 #include <cassert>
4 
5 namespace openmsx {
6 
8  : input(input_)
9 {
10 }
11 
12 bool ResampleTrivial::generateOutput(int* dataOut, unsigned num,
13  EmuTime::param /*time*/)
14 {
15 #ifdef __SSE2__
16  assert((uintptr_t(dataOut) & 15) == 0); // must be 16-byte aligned
17 #endif
18  return input.generateInput(dataOut, num);
19 }
20 
21 } // namespace openmsx
bool generateInput(int *buffer, unsigned num)
Note: To enable various optimizations (like SSE), this method is allowed to generate up to 3 extra sa...
ResampleTrivial(ResampledSoundDevice &input)
virtual bool generateOutput(int *dataOut, unsigned num, EmuTime::param time)