Beispiel #1
0
void SoundDecoder_SetError(const char* err_str, ...)
{
	va_list argp;
	if(NULL == s_errorPool)
	{
		fprintf(stderr, "Error: You should not call SoundDecoder_SetError while Sound is not initialized\n");
		return;
	}
	va_start(argp, err_str);
	/* SDL_SetError which I'm emulating has no number parameter. */
	TError_SetErrorv(s_errorPool, 1, err_str, argp);
	va_end(argp);
}
Beispiel #2
0
void SoundDecoder_SetError(const char* err_str, ...)
{
	if(NULL == s_errorPool)
	{
		fprintf(stderr, "Error: You should not call SoundDecoder_SetError while Sound is not initialized\n");
		return;
	}
	va_list argp;
	va_start(argp, err_str);
	// SDL_SetError which I'm emulating has no number parameter.
	TError_SetErrorv(s_errorPool, 1, err_str, argp);
	va_end(argp);
#ifdef ANDROID_NDK
	__android_log_print(ANDROID_LOG_INFO, "SoundDecoder_SetError", TError_GetLastErrorStr(s_errorPool));
#endif
}