- Changed defaults and ranges for the soundtouch timestretch parameters. This reduces added latency from timestretching.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3939 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2010-10-18 12:50:13 +00:00
parent 921e865c8e
commit 2b068be3ab
5 changed files with 30 additions and 29 deletions

View File

@ -153,6 +153,7 @@ CRC::Game CRC::m_games[] =
{0x4C7BB3C8, SimpsonsGame, Unknown, 0}, {0x4C7BB3C8, SimpsonsGame, Unknown, 0},
{0x4C94B32C, SimpsonsGame, Unknown, 0}, {0x4C94B32C, SimpsonsGame, Unknown, 0},
{0xD71B57F4, Genji, Unknown, 0}, {0xD71B57F4, Genji, Unknown, 0},
{0xE04EA200, StarOcean3, EU, 0},
{0x23A97857, StarOcean3, US, 0}, {0x23A97857, StarOcean3, US, 0},
{0xBEC32D49, StarOcean3, JP, 0}, {0xBEC32D49, StarOcean3, JP, 0},
{0x8192A241, StarOcean3, JP, 0}, //NTSC JP special directors cut limited extra sugar on top edition (the special one :p) {0x8192A241, StarOcean3, JP, 0}, //NTSC JP special directors cut limited extra sugar on top edition (the special one :p)

View File

@ -84,18 +84,18 @@ extern int SynchMode;
namespace SoundtouchCfg namespace SoundtouchCfg
{ {
// Timestretch Slider Bounds, Min/Max // Timestretch Slider Bounds, Min/Max
static const int SequenceLen_Min = 30; static const int SequenceLen_Min = 20;
static const int SequenceLen_Max = 90; static const int SequenceLen_Max = 100;
static const int SeekWindow_Min = 10; static const int SeekWindow_Min = 10;
static const int SeekWindow_Max = 32; static const int SeekWindow_Max = 30;
static const int Overlap_Min = 3; static const int Overlap_Min = 5;
static const int Overlap_Max = 15; static const int Overlap_Max = 15;
static int SequenceLenMS = 50; static int SequenceLenMS = 30;
static int SeekWindowMS = 15; static int SeekWindowMS = 20;
static int OverlapMS = 25; static int OverlapMS = 10;
void ReadSettings(); void ReadSettings();
void WriteSettings(); void WriteSettings();

View File

@ -42,9 +42,9 @@ void ApplySettings( soundtouch::SoundTouch& sndtouch )
void ReadSettings() void ReadSettings()
{ {
SequenceLenMS = CfgReadInt( L"SOUNDTOUCH", L"SequenceLengthMS", 63 ); SequenceLenMS = CfgReadInt( L"SOUNDTOUCH", L"SequenceLengthMS", 30 );
SeekWindowMS = CfgReadInt( L"SOUNDTOUCH", L"SeekWindowMS", 16 ); SeekWindowMS = CfgReadInt( L"SOUNDTOUCH", L"SeekWindowMS", 20 );
OverlapMS = CfgReadInt( L"SOUNDTOUCH", L"OverlapMS", 7 ); OverlapMS = CfgReadInt( L"SOUNDTOUCH", L"OverlapMS", 10 );
ClampValues(); ClampValues();
WriteSettings(); WriteSettings();
@ -62,9 +62,9 @@ static GtkWidget *seq_slide, *seek_slide, *over_slide;
void restore_defaults() void restore_defaults()
{ {
gtk_range_set_value(GTK_RANGE(seq_slide), 63); gtk_range_set_value(GTK_RANGE(seq_slide), 30);
gtk_range_set_value(GTK_RANGE(seek_slide), 16); gtk_range_set_value(GTK_RANGE(seek_slide), 20);
gtk_range_set_value(GTK_RANGE(over_slide), 7); gtk_range_set_value(GTK_RANGE(over_slide), 10);
} }
void DisplayDialog() void DisplayDialog()

View File

@ -20,19 +20,19 @@
#include "SoundTouch/SoundTouch.h" #include "SoundTouch/SoundTouch.h"
static int SequenceLenMS = 50; static int SequenceLenMS = 30;
static int SeekWindowMS = 15; static int SeekWindowMS = 20;
static int OverlapMS = 25; static int OverlapMS = 10;
// Timestretch Slider Bounds, Min/Max // Timestretch Slider Bounds, Min/Max
static const int SequenceLen_Min = 50; static const int SequenceLen_Min = 20;
static const int SequenceLen_Max = 90; static const int SequenceLen_Max = 100;
static const int SeekWindow_Min = 10; static const int SeekWindow_Min = 10;
static const int SeekWindow_Max = 32; static const int SeekWindow_Max = 30;
static const int Overlap_Min = 3; static const int Overlap_Min = 5;
static const int Overlap_Max = 25; static const int Overlap_Max = 15;
void SoundtouchCfg::ApplySettings( soundtouch::SoundTouch& sndtouch ) void SoundtouchCfg::ApplySettings( soundtouch::SoundTouch& sndtouch )
{ {
@ -50,9 +50,9 @@ static void ClampValues()
void SoundtouchCfg::ReadSettings() void SoundtouchCfg::ReadSettings()
{ {
SequenceLenMS = CfgReadInt( L"SOUNDTOUCH", L"SequenceLengthMS", 50 ); SequenceLenMS = CfgReadInt( L"SOUNDTOUCH", L"SequenceLengthMS", 30 );
SeekWindowMS = CfgReadInt( L"SOUNDTOUCH", L"SeekWindowMS", 15 ); SeekWindowMS = CfgReadInt( L"SOUNDTOUCH", L"SeekWindowMS", 20 );
OverlapMS = CfgReadInt( L"SOUNDTOUCH", L"OverlapMS", 25 ); OverlapMS = CfgReadInt( L"SOUNDTOUCH", L"OverlapMS", 10 );
ClampValues(); ClampValues();
} }

View File

@ -148,12 +148,12 @@ BEGIN
CTEXT "Seekwindow Size",IDC_STATIC,70,125,66,9 CTEXT "Seekwindow Size",IDC_STATIC,70,125,66,9
CONTROL "",IDC_OVERLAP_SLIDER,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,50,170,105,10 CONTROL "",IDC_OVERLAP_SLIDER,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,50,170,105,10
CTEXT "Overlap",IDC_STATIC,86,162,34,9 CTEXT "Overlap",IDC_STATIC,86,162,34,9
LTEXT "50",IDC_STATIC,50,112,9,8 LTEXT "20",IDC_STATIC,50,112,9,8
LTEXT "90",IDC_STATIC,146,112,9,8 LTEXT "100",IDC_STATIC,146,112,13,8
LTEXT "10",IDC_STATIC,50,149,9,8 LTEXT "10",IDC_STATIC,50,149,9,8
LTEXT "32",IDC_STATIC,146,149,9,8 LTEXT "30",IDC_STATIC,146,149,9,8
LTEXT "3",IDC_STATIC,52,184,8,8 LTEXT "5",IDC_STATIC,52,184,8,8
LTEXT "25",IDC_STATIC,146,184,9,8 LTEXT "15",IDC_STATIC,146,184,9,8
PUSHBUTTON "Reset Defaults",IDC_RESET_DEFAULTS,61,62,82,12 PUSHBUTTON "Reset Defaults",IDC_RESET_DEFAULTS,61,62,82,12
END END