+ sound_mutex = SDL_CreateMutex();
+ sound_cv = SDL_CreateCond();
+
+ SDL_OpenAudio(&desired_spec, &sound_settings);
+ sound_frequency = sound_settings.freq;
+ audio_buffer_size = sound_settings.size;
+ u32 i = audio_buffer_size / 16;
+ for (audio_buffer_size_number = 0; i && (i & 1) == 0; i >>= 1)
+ audio_buffer_size_number++;
+#ifndef PSP_BUILD
+ printf("audio: freq %d, size %d\n", sound_frequency, audio_buffer_size);
+#endif
+