Esempio n. 1
0
static void SDLCALL callback(void *userdata, Uint8 *_stream, int len) {

	SDL_LockAudio();

	context context = { _stream, len };
	streamCallback(&context);
	
	SDL_UnlockAudio();
}
Esempio n. 2
0
void bqPlayerCallback(SLAndroidSimpleBufferQueueItf bq, void *context) {
	streamCallback(outBuffer);
	(*bqPlayerBufferQueue)->Enqueue(bqPlayerBufferQueue, outBuffer, 64*sizeof(short));
}