Esempio n. 1
0
void soundTest()
{
	int i;

	for (i = 0; i < 25; i++)
	{
		assert(sound_InitLibrary());
		sound_ShutdownLibrary();
	}
	fprintf(stdout, "\tSound self-test: PASSED\n");
}
Esempio n. 2
0
//*
// =======================================================================================================================
// =======================================================================================================================
//
BOOL sound_Init()
{
    g_iCurTracks = 0;
    if (!sound_InitLibrary())
    {
        debug(LOG_ERROR, "Cannot init sound library");
        return false;
    }

    // init audio array (with NULL pointers; which calloc ensures by setting all allocated memory to zero)
    memset(g_apTrack, 0, sizeof(g_apTrack));

    // set system active flag for callbacks
    g_bSystemActive = true;
    return true;
}