Mercurial > audlegacy
diff Plugins/Input/console/Gym_Emu.cpp @ 256:84aabc053b6e trunk
[svn] C++ warning fixes by external contractor Stephen Bennett.
author | chainsaw |
---|---|
date | Sun, 04 Dec 2005 08:49:53 -0800 |
parents | 252843aac42f |
children | 0b9507985f0d |
line wrap: on
line diff
--- a/Plugins/Input/console/Gym_Emu.cpp Sun Dec 04 07:37:06 2005 -0800 +++ b/Plugins/Input/console/Gym_Emu.cpp Sun Dec 04 08:49:53 2005 -0800 @@ -64,7 +64,7 @@ BLARGG_RETURN_ERR( blip_buf.sample_rate( sample_rate, 1000 / 30 ) ); - BLARGG_RETURN_ERR( fm.set_rate( sample_rate * oversample, base_clock / 7 ) ); + BLARGG_RETURN_ERR( fm.set_rate( (long) (sample_rate * oversample), base_clock / 7 ) ); blip_buf.clock_rate( clock_rate ); @@ -219,8 +219,8 @@ parse_frame(); // run SMS APU and buffer - blip_time_t clock_count = (pairs_per_frame + 1 - blip_buf.samples_avail()) * - clocks_per_sample; + blip_time_t clock_count = (blip_time_t) ((pairs_per_frame + 1 - blip_buf.samples_avail()) * + clocks_per_sample); apu.end_frame( clock_count ); blip_buf.end_frame( clock_count ); assert( unsigned (blip_buf.samples_avail() - pairs_per_frame) <= 4 ); @@ -343,8 +343,8 @@ this->last_dac = last_dac; } - int const step = 6 * oversample; - int remain = pairs_per_frame * oversample; + int const step = (int) (6 * oversample); + int remain = (int) (pairs_per_frame * oversample); while ( remain ) { int n = step; if ( n > remain )