mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-08-12 20:05:45 -05:00
Use pitch rate to get to proper sample rate...?
This commit is contained in:
@@ -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