Added the option to disable updating status bar icons (doing so gains performance during disk I/O);
Reduced sound gain options to one (because the per-source gain does not work right); Added the Diamond SpeedStar PRO (CL-GD 5428), per patch from TheCollector1995.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Interface to the OpenAL sound processing library.
|
||||
*
|
||||
* Version: @(#)openal.c 1.0.3 2018/01/16
|
||||
* Version: @(#)openal.c 1.0.4 2018/02/11
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -231,8 +231,7 @@ givealbuffer_common(void *buf, uint8_t src, int size, int freq)
|
||||
|
||||
alGetSourcei(source[src], AL_BUFFERS_PROCESSED, &processed);
|
||||
if (processed >= 1) {
|
||||
gain = pow(10.0, (double)sound_gain[src] / 20.0);
|
||||
|
||||
gain = pow(10.0, (double)sound_gain / 20.0);
|
||||
alListenerf(AL_GAIN, gain);
|
||||
|
||||
alSourceUnqueueBuffers(source[src], 1, &buffer);
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
*
|
||||
* Sound emulation core.
|
||||
*
|
||||
* Version: @(#)sound.c 1.0.11 2017/12/28
|
||||
* Version: @(#)sound.c 1.0.12 2018/02/11
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
*
|
||||
* Copyright 2008-2017 Sarah Walker.
|
||||
* Copyright 2016,2017 Miran Grca.
|
||||
* Copyright 2008-2018 Sarah Walker.
|
||||
* Copyright 2016-2018 Miran Grca.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
@@ -52,7 +52,7 @@ typedef struct {
|
||||
int sound_card_current = 0;
|
||||
int sound_pos_global = 0;
|
||||
int soundon = 1;
|
||||
int sound_gain[3] = { 0, 0, 0 };
|
||||
int sound_gain = 0;
|
||||
|
||||
|
||||
static int sound_card_last = 0;
|
||||
|
||||
@@ -8,19 +8,19 @@
|
||||
*
|
||||
* Sound emulation core.
|
||||
*
|
||||
* Version: @(#)sound.h 1.0.3 2017/12/09
|
||||
* Version: @(#)sound.h 1.0.4 2018/02/11
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
*
|
||||
* Copyright 2008-2017 Sarah Walker.
|
||||
* Copyright 2016,2017 Miran Grca.
|
||||
* Copyright 2008-2018 Sarah Walker.
|
||||
* Copyright 2016-2018 Miran Grca.
|
||||
*/
|
||||
#ifndef EMU_SOUND_H
|
||||
# define EMU_SOUND_H
|
||||
|
||||
|
||||
extern int sound_gain[3];
|
||||
extern int sound_gain;
|
||||
|
||||
#define SOUNDBUFLEN (48000/50)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user