Added the NCR 53C810 PCI SCSI controller;
Fixed the behavior of the CD-ROM GET CONFIGURATION command when unimplemented features are requested; Fixed the behavior of the CD-ROM READ DVD STRUCTURE command in some situations and made it correctly report 05/30/02 for incompatible format; Reworked the PS/2 Model 80 Type 2 memory handling a bit; The emulator now allocates the few MB of space needed for pages for the entire 4 GB RAM space at the startup and only memset's it to 0 on hard reset - should make sure DMA page reads from/writes to memory-mapped devices no longer crash the emulator on invalidating the memory range; Applied app applicable PCem patches; The PS/1 Model 2133 now also applies PS/2-style NMI mask handling - fixes the 486 recompiler on this machine; Added the missing #include of "cpu/cpu.h" in io.c, fixes compiling when I/O tracing is enabled.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
@@ -205,6 +206,7 @@ void givealbuffer_common(void *buf, uint8_t src, int size, int freq)
|
||||
int processed;
|
||||
int state;
|
||||
ALuint buffer;
|
||||
double gain;
|
||||
|
||||
alGetSourcei(source[src], AL_SOURCE_STATE, &state);
|
||||
|
||||
@@ -216,6 +218,10 @@ void givealbuffer_common(void *buf, uint8_t src, int size, int freq)
|
||||
|
||||
if (processed>=1)
|
||||
{
|
||||
gain = pow(10.0, (double)sound_gain[src] / 20.0);
|
||||
|
||||
// alSourcef(source[src], AL_GAIN, gain);
|
||||
|
||||
alSourceUnqueueBuffers(source[src], 1, &buffer);
|
||||
|
||||
if (sound_is_float)
|
||||
|
||||
Reference in New Issue
Block a user