1
0
Fork 0

Include an extra scale factor in the mixer volume to be set by a device

Set the adlib device scale at 2.0


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3377
This commit is contained in:
Sjoerd van der Berg 2009-04-28 21:48:24 +00:00
parent 1975a129cc
commit f6def87e34
3 changed files with 14 additions and 19 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: mixer.h,v 1.18 2009-04-25 16:25:03 harekiet Exp $ */
/* $Id: mixer.h,v 1.19 2009-04-28 21:48:24 harekiet Exp $ */
#ifndef DOSBOX_MIXER_H
#define DOSBOX_MIXER_H
@ -48,6 +48,7 @@ extern Bit8u MixTemp[MIXER_BUFSIZE];
class MixerChannel {
public:
void SetVolume(float _left,float _right);
void SetScale( float f );
void UpdateVolume(void);
void SetFreq(Bitu _freq);
void Mix(Bitu _needed);
@ -78,6 +79,7 @@ public:
void Enable(bool _yesno);
MIXER_Handler handler;
float volmain[2];
float scale;
Bit32s volmul[2];
Bitu freq_add,freq_index;
Bitu done,needed;