mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-09-07 08:05:16 -05:00
Use pitch rate to get to proper sample rate...?
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
#define __HW_DEFS_HPP
|
||||
|
||||
#define AUDIO_CHANNELS 2
|
||||
#define SAMPLE_RATE 32734
|
||||
#define SAMPLE_RATE 48000
|
||||
#define PITCH_RATE (67027964 / ((float)SAMPLE_RATE * 2048))
|
||||
|
||||
#define TOP_WIDTH_3DS 400
|
||||
#define BOT_WIDTH_3DS 320
|
||||
|
||||
@@ -19,6 +19,7 @@ Audio::Audio(AudioData *audio_data) {
|
||||
// Consume old events
|
||||
this->audio_data->check_audio_restart_request();
|
||||
sf::SoundStream::initialize(AUDIO_CHANNELS, SAMPLE_RATE);
|
||||
this->setPitch(PITCH_RATE);
|
||||
#if (SFML_VERSION_MAJOR > 2) || ((SFML_VERSION_MAJOR == 2) && (SFML_VERSION_MINOR >= 6))
|
||||
// Since we receive data every 16.6 ms, this is useless,
|
||||
// and only increases CPU load... (Default is 10 ms)
|
||||
|
||||
Reference in New Issue
Block a user