示例#1
0
EXPORT BOOL CALL InitiateAudio (AUDIO_INFO Audio_Info){
	CloseDLL ();
	memcpy (&AudioInfo, &Audio_Info, sizeof(AUDIO_INFO));
	snd.Initialize (AiCallBack, AudioInfo.hwnd);

	pIMEM  = (char*)Audio_Info.IMEM; //merged
	pRDRAM = (char*)Audio_Info.RDRAM; //merged
	pDMEM  = (char*)Audio_Info.DMEM; //merged
	rsp_reset();

	return TRUE;
}
示例#2
0
文件: Audio.c 项目: J301GH/emu-1964
EXPORT BOOL CALL InitiateAudio (AUDIO_INFO Audio_Info) 
{
	HRESULT hr;
	int count;
	ROMHeader header;
	//void InitLogging ();
	static int initvariables=0;
	gUcode = UNDEFINED_UCODE;

    AudioInfo = Audio_Info;
	audioIsPlaying = FALSE;

	memcpy(&header, Audio_Info.HEADER, sizeof(ROMHeader));
	ROM_ByteSwap_3210( &header, sizeof(ROMHeader) );
	memset(gameName,0,sizeof(gameName));
	ROM_GetRomNameFromHeader(gameName, &header);
	
    if (!initvariables)
    {
        initvariables = 1;
	Dacrate = 0;
    Playing = FALSE;	
	SndBuffer[0] = Buffer_Empty;
	SndBuffer[1] = Buffer_Empty;
	SndBuffer[2] = Buffer_Empty;
	pIMEM  = (char*)Audio_Info.IMEM;
	pRDRAM = (char*)Audio_Info.RDRAM;
	pDMEM  = (char*)Audio_Info.DMEM;
	}

	//InitLogging ();

	DoOnce = 0;
	imem_DMA_dst = 0;
	imem_DMA_src = 0;
	rsp_reset();

	return TRUE;
}