InterfaceInfo* AudGetInfo()
{
	if (IntInfoInit(&AudInfo)) {
		IntInfoFree(&AudInfo);
		return NULL;
	}

	if (bAudOkay) {
		TCHAR szString[MAX_PATH] = _T("");

		AudInfo.pszModuleName = pAudOut[nAudActive]->szModuleName;

		_sntprintf(szString, MAX_PATH, _T("Playback at %iHz, %i%% volume"), nAudSampleRate[nAudActive], nAudVolume / 100);
		IntInfoAddStringInterface(&AudInfo, szString);

		if (nAudDSPModule[nAudActive]) {
			IntInfoAddStringInterface(&AudInfo, _T("Applying low-pass filter"));
		}

	 	if (pAudOut[nAudSelect]->GetPluginSettings) {
			pAudOut[nAudSelect]->GetPluginSettings(&AudInfo);
		}
	} else {
		IntInfoAddStringInterface(&AudInfo, _T("Audio plugin not initialised"));
	}

	return &AudInfo;
}
Beispiel #2
0
InterfaceInfo* ProfileGetInfo()
{
	if (IntInfoInit(&ProfileInfo)) {
		IntInfoFree(&ProfileInfo);
		return NULL;
	}

	if (bProfileOkay) {

		ProfileInfo.pszModuleName = pProfileDo[nProfileSelect]->szModuleName;

	 	if (pProfileDo[nProfileSelect]->GetPluginSettings) {
			pProfileDo[nProfileSelect]->GetPluginSettings(&ProfileInfo);
		}
	} else {
		IntInfoAddStringInterface(&ProfileInfo, _T("Profiling module not initialised"));
	}

	return &ProfileInfo;
}