From 4ae47a74bf2c1e79b182ea0301b0bbdd6170e60e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 5 Aug 2003 17:52:47 +0000 Subject: added support for output sample rates > 32767 (still limited to a max of 65535, but all we care about are 44100 and 48000 anyway) svn-id: r9510 --- scumm/player_v2.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'scumm/player_v2.h') diff --git a/scumm/player_v2.h b/scumm/player_v2.h index 1bdfa96382..6aec549407 100644 --- a/scumm/player_v2.h +++ b/scumm/player_v2.h @@ -92,9 +92,9 @@ private: bool _pcjr; int _header_len; - int _sample_rate; - int _next_tick; - int _tick_len; + uint32 _sample_rate; + uint32 _next_tick; + uint32 _tick_len; unsigned int _update_step; unsigned int _decay; unsigned int _level; @@ -129,13 +129,13 @@ private: void chainNextSound(); static void premix_proc(void *param, int16 *buf, uint len); - void do_mix (int16 *buf, int len); + void do_mix (int16 *buf, uint len); - void lowPassFilter(int16 *data, int len); + void lowPassFilter(int16 *data, uint len); void squareGenerator(int channel, int freq, int vol, - int noiseFeedback, int16 *sample, int len); - void generateSpkSamples(int16 *data, int len); - void generatePCjrSamples(int16 *data, int len); + int noiseFeedback, int16 *sample, uint len); + void generateSpkSamples(int16 *data, uint len); + void generatePCjrSamples(int16 *data, uint len); }; -- cgit v1.2.3