Configurable samplerate quality

This commit is contained in:
Themaister 2010-05-29 15:25:49 +02:00
parent 77a1e1541c
commit ea8a6f6de1
2 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,7 @@
#include <stdbool.h>
#include "libsnes.hpp"
#include "driver.h"
#include <samplerate.h>
@ -82,6 +83,9 @@ static const char* audio_device = NULL;
// Desired audio latency in ms.
static const int out_latency = 64;
// Defines the quality (and cpu reqirements) of samplerate conversion.
#define SAMPLERATE_QUALITY SRC_SINC_MEDIUM_QUALITY

View File

@ -87,7 +87,7 @@ static void init_audio(void)
audio_active = false;
int err;
source = src_new(SRC_SINC_MEDIUM_QUALITY, 2, &err);
source = src_new(SAMPLERATE_QUALITY, 2, &err);
}
static void uninit_audio(void)