mirror of
https://github.com/libretro/libretro-prboom.git
synced 2024-11-27 02:00:49 +00:00
Pitch is better? Hard to tell if correct.
This commit is contained in:
parent
8208956ce6
commit
0a37762600
@ -28,7 +28,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
/* PS3 values for i_sound.h - check if correct for libretro */
|
||||
#define SAMPLECOUNT (32000 / 35)
|
||||
#define SAMPLECOUNT (4 * 11025 / 35)
|
||||
#define NUM_CHANNELS 32
|
||||
#define BUFMUL 4
|
||||
#define MIXBUFFERSIZE (SAMPLECOUNT*BUFMUL)
|
||||
@ -44,7 +44,7 @@ static unsigned char screen_buf[2 * 320 * 200];
|
||||
int lengths[NUMSFX];
|
||||
int snd_card = 1;
|
||||
int mus_card = 0;
|
||||
int snd_samplerate= 32000;
|
||||
int snd_samplerate= 11025;
|
||||
int use_doublebuffer = 1;
|
||||
|
||||
typedef struct {
|
||||
@ -132,7 +132,7 @@ void retro_get_system_av_info(struct retro_system_av_info *info)
|
||||
{
|
||||
info->timing = (struct retro_system_timing) {
|
||||
.fps = 35.0,
|
||||
.sample_rate = 32000.0,
|
||||
.sample_rate = 4 * 11025.0,
|
||||
};
|
||||
|
||||
info->geometry = (struct retro_game_geometry) {
|
||||
|
@ -251,7 +251,7 @@ default_t defaults[] =
|
||||
def_int,ss_none}, // select music driver (DOS), -1 is autodetect, 0 is none"; in Linux, non-zero enables music
|
||||
{"pitched_sounds",{&pitched_sounds},{0},0,1, // killough 2/21/98
|
||||
def_bool,ss_none}, // enables variable pitch in sound effects (from id's original code)
|
||||
{"samplerate",{&snd_samplerate},{22050},11025,48000, def_int,ss_none},
|
||||
{"samplerate",{&snd_samplerate},{11025},11025,48000, def_int,ss_none},
|
||||
{"sfx_volume",{&snd_SfxVolume},{8},0,15, def_int,ss_none},
|
||||
{"music_volume",{&snd_MusicVolume},{8},0,15, def_int,ss_none},
|
||||
{"mus_pause_opt",{&mus_pause_opt},{2},0,2, // CPhipps - music pausing
|
||||
|
Loading…
Reference in New Issue
Block a user