mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Fix some suboptimal audio constants.
This commit is contained in:
@@ -143,8 +143,8 @@ private:
|
|||||||
IGpMutex *m_mixState;
|
IGpMutex *m_mixState;
|
||||||
|
|
||||||
static const size_t kMaxChannels = 16;
|
static const size_t kMaxChannels = 16;
|
||||||
static const size_t kMixChunkSize = 256;
|
static const size_t kMixChunkSize = 512;
|
||||||
static const int16_t kMaxAudioVolumeScale = 25;
|
static const int16_t kMaxAudioVolumeScale = 64;
|
||||||
|
|
||||||
GpAudioChannel_SDL2 *m_channels[kMaxChannels];
|
GpAudioChannel_SDL2 *m_channels[kMaxChannels];
|
||||||
size_t m_numChannels;
|
size_t m_numChannels;
|
||||||
@@ -508,7 +508,7 @@ bool GpAudioDriver_SDL2::Init()
|
|||||||
requestedSpec.channels = 1;
|
requestedSpec.channels = 1;
|
||||||
requestedSpec.format = AUDIO_S16;
|
requestedSpec.format = AUDIO_S16;
|
||||||
requestedSpec.freq = m_properties.m_sampleRate;
|
requestedSpec.freq = m_properties.m_sampleRate;
|
||||||
requestedSpec.samples = 512;
|
requestedSpec.samples = kMixChunkSize;
|
||||||
requestedSpec.userdata = this;
|
requestedSpec.userdata = this;
|
||||||
|
|
||||||
if (SDL_OpenAudio(&requestedSpec, nullptr))
|
if (SDL_OpenAudio(&requestedSpec, nullptr))
|
||||||
|
Reference in New Issue
Block a user