refactor(core/audio): eliminar fill(0.5F) sobreescrit a Ja::init (HC-05)
sound_volume[] és un inline float[] amb zero-init per defecte i la capa Audio crida setSoundVolume(config_.sound_volume) via enable() just després de Ja::init, així que el fill(0.5F) no arribava mai a l'usuari. Era un valor màgic heretat. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
5939cd3aa3
commit
92f38bc51c
2 files changed
+1
-2
No files matched your search
@@ -268,7 +268,6 @@ namespace Ja {
|
||||
sdl_audio_device = SDL_OpenAudioDevice(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, &audio_spec);
|
||||
if (sdl_audio_device == 0) { std::cout << "Failed to initialize SDL audio!" << '\n'; }
|
||||
for (auto& channel : channels) { channel.state = ChannelState::FREE; }
|
||||
std::ranges::fill(sound_volume, 0.5F);
|
||||
}
|
||||
|
||||
inline void quit() {
|
||||
|
||||
Reference in new issue
Block a user