Skip to content

Commit 3aa4267

Browse files
authored
Reducing massively oversized audio buffer
1 parent 4be468a commit 3aa4267

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libretro/core.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ char retro_system_bios_directory[512];
121121
char retro_system_save_directory[512];
122122
char retro_content_filepath[512];
123123

124-
uint16_t audioBuffer[B2_SAMPLE_RATE*1000*2];
124+
// TODO: optimize size instead of a full second + add guards when filling
125+
uint16_t audioBuffer[B2_SAMPLE_RATE*2];
125126
bool inputStateMap[256][1];
126127

127128
retro_usec_t curr_frame_time = 0;

0 commit comments

Comments
 (0)