# Use the ALSA OSS emulation driver. Ok for games, not so much for rockbox. #export SDL_AUDIODRIVER=dsp # The new salsa ALSA driver works better for rockbox on IZ2S export SDL_AUDIODRIVER=alsa # It requests a big buffer to give the ALSA driver plenty of data. # This lets it get past system busy times without gaps in the audio. # The new driver also waits for the buffer to fill a bit before playing. # This avoids most of the jittery mess when rockbox first starts up. # You can adjust/debug the parameters with these environment variables. # Enable this if you want to print SDL ALSA debug info on stdout. #export SDL_AUDIO_ALSA_DEBUG=1 # The default behavior is to ask for a 1000ms (1 second) ALSA buffer. # The driver only gives a max of 32768 frames (3/4 secs @ 44.1KHz) though. #export SDL_AUDIO_ALSA_SET_BUFFER_SIZE=1000 # By default wait for 500ms (.5 secs) in buffer before ALSA starts playing. #export SDL_AUDIO_ALSA_SET_START_THRESH=500 # The default is to let the SDL app ask for the period size. # Rockbox asks for 2048 frames, GMU wants 4096 frames per period. # But the ALSA driver likes to pick 1024 frames with a big buffer. #export SDL_AUDIO_ALSA_SET_PERIOD_SIZE=1024