Ejemplo n.º 1
0
//
// HumanView::InitAudio							- Chapter X, page Y
//
bool HumanView::InitAudio()
{
	if (!g_pAudio)
	{
		g_pAudio = GCC_NEW DirectSoundAudio();		// use this line for DirectSound
	}

	if (!g_pAudio)
		return false;

	if (!g_pAudio->VInitialize(g_pApp->GetHwnd()))
		return false;

	return true;
}
Ejemplo n.º 2
0
bool HumanView::InitAudio()
{
	// create and initalize the global audio system
	if (!g_pAudio)
	{
		g_pAudio = CB_NEW DirectSoundAudio();
	}

	if (!g_pAudio)
		return false;
	
	if (!g_pAudio->Initialize(g_pApp->GetHwnd()))
		return false;

	return true;
}