remove stray spaces

This commit is contained in:
fgsfds 2020-06-14 23:29:34 +03:00
parent e24ead4036
commit 9e3b6cedfe
1 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ void send_display_list(struct SPTask *spTask) {
#define printf #define printf
void produce_one_frame(void) { void produce_one_frame(void) {
gfx_start_frame(); gfx_start_frame();
@ -83,7 +83,7 @@ void produce_one_frame(void) {
setSequencePlayerVolume(SEQ_PLAYER_ENV, (s32)configEnvVolume); setSequencePlayerVolume(SEQ_PLAYER_ENV, (s32)configEnvVolume);
game_loop_one_iteration(); game_loop_one_iteration();
thread6_rumble_loop(NULL); thread6_rumble_loop(NULL);
int samples_left = audio_api->buffered(); int samples_left = audio_api->buffered();
u32 num_audio_samples = samples_left < audio_api->get_desired_buffered() ? 544 : 528; u32 num_audio_samples = samples_left < audio_api->get_desired_buffered() ? 544 : 528;
@ -96,12 +96,12 @@ void produce_one_frame(void) {
u32 num_audio_samples = audio_cnt < 2 ? 528 : 544;*/ u32 num_audio_samples = audio_cnt < 2 ? 528 : 544;*/
create_next_audio_buffer(audio_buffer + i * (num_audio_samples * 2), num_audio_samples); create_next_audio_buffer(audio_buffer + i * (num_audio_samples * 2), num_audio_samples);
} }
//printf("Audio samples before submitting: %d\n", audio_api->buffered()); //printf("Audio samples before submitting: %d\n", audio_api->buffered());
// scale by master volume (0-127) // scale by master volume (0-127)
const s32 mod = (s32)configMasterVolume; const s32 mod = (s32)configMasterVolume;
for (u32 i = 0; i < num_audio_samples * 4; ++i) for (u32 i = 0; i < num_audio_samples * 4; ++i)
audio_buffer[i] = ((s32)audio_buffer[i] * mod) >> VOLUME_SHIFT; audio_buffer[i] = ((s32)audio_buffer[i] * mod) >> VOLUME_SHIFT;
audio_api->play((u8*)audio_buffer, 2 * num_audio_samples * 4); audio_api->play((u8*)audio_buffer, 2 * num_audio_samples * 4);