environment: Return the played samples in on_audio_sample_batch()
From analyzing RetroArch, it seems this function is supposed to return the number of played frames, while we currently return 0 there. This breaks, in particular, the beetle-ngp core which enters an infinite loop trying to play audio.
Edited by Adrien Plazas