Updated Mac OSX specific sound generation for Brads new sound changes

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@267 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
markgrebe 2004-06-13 19:22:45 +00:00
parent 9e287b0e8c
commit 7975fa9ce3
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ void Tia_process (register unsigned char *buffer, register uint16 n)
/* calculate the latest output value and place in buffer */
#ifdef MAC_OSX
*(buffer++) = (outvol_0 + outvol_1)/2 + 128;
*(buffer++) = ((uint8) ((((uint32)outvol_0 + (uint32)outvol_1) * volume) / 100))/2 + 128;
#else
*(buffer++) = ((((uint32)outvol_0 + (uint32)outvol_1) * volume) / 100);
#endif