mirror of https://github.com/snes9xgit/snes9x.git
Small optimizations to DSP.
This commit is contained in:
parent
f8a7f23a4b
commit
287fab5f1b
|
@ -62,24 +62,11 @@ static BOOST::uint8_t const initial_regs [SPC_DSP::register_count] =
|
|||
out [0] = l;\
|
||||
out [1] = r;\
|
||||
out += 2;\
|
||||
if ( out >= m.out_end )\
|
||||
{\
|
||||
check( out == m.out_end );\
|
||||
check( m.out_end != &m.extra [extra_size] || \
|
||||
(m.extra <= m.out_begin && m.extra < &m.extra [extra_size]) );\
|
||||
out = m.extra;\
|
||||
m.out_end = &m.extra [extra_size];\
|
||||
}\
|
||||
}\
|
||||
|
||||
void SPC_DSP::set_output( sample_t* out, int size )
|
||||
{
|
||||
require( (size & 1) == 0 ); // must be even
|
||||
if ( !out )
|
||||
{
|
||||
out = m.extra;
|
||||
size = extra_size;
|
||||
}
|
||||
m.out_begin = out;
|
||||
m.out = out;
|
||||
m.out_end = out + size;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#endif
|
||||
|
||||
// Uncomment to enable platform-specific (and possibly non-portable) optimizations
|
||||
//#define BLARGG_NONPORTABLE 1
|
||||
#define BLARGG_NONPORTABLE 1
|
||||
|
||||
// Uncomment if automatic byte-order determination doesn't work
|
||||
//#define BLARGG_BIG_ENDIAN 1
|
||||
|
|
Loading…
Reference in New Issue