示例#1
0
void WriteSettings()
{
    if (!pathSet) {
        FileLog("Write called without the path set.\n");
        return;
    }

    CfgWriteInt(L"MIXING", L"Interpolation", Interpolation);
    CfgWriteBool(L"MIXING", L"Disable_Effects", EffectsDisabled);
    CfgWriteBool(L"MIXING", L"DealiasFilter", postprocess_filter_dealias);
    CfgWriteInt(L"MIXING", L"FinalVolume", (int)(FinalVolume * 100 + 0.5f));

    CfgWriteBool(L"MIXING", L"AdvancedVolumeControl", AdvancedVolumeControl);
    CfgWriteFloat(L"MIXING", L"VolumeAdjustC(dB)", VolumeAdjustCdb);
    CfgWriteFloat(L"MIXING", L"VolumeAdjustFL(dB)", VolumeAdjustFLdb);
    CfgWriteFloat(L"MIXING", L"VolumeAdjustFR(dB)", VolumeAdjustFRdb);
    CfgWriteFloat(L"MIXING", L"VolumeAdjustBL(dB)", VolumeAdjustBLdb);
    CfgWriteFloat(L"MIXING", L"VolumeAdjustBR(dB)", VolumeAdjustBRdb);
    CfgWriteFloat(L"MIXING", L"VolumeAdjustSL(dB)", VolumeAdjustSLdb);
    CfgWriteFloat(L"MIXING", L"VolumeAdjustSR(dB)", VolumeAdjustSRdb);
    CfgWriteFloat(L"MIXING", L"VolumeAdjustLFE(dB)", VolumeAdjustLFEdb);

    CfgWriteStr(L"OUTPUT", L"Output_Module", mods[OutputModule]->GetIdent());
    CfgWriteInt(L"OUTPUT", L"Latency", SndOutLatencyMS);
    CfgWriteInt(L"OUTPUT", L"Synch_Mode", SynchMode);
    CfgWriteInt(L"DEBUG", L"DelayCycles", delayCycles);

    PortaudioOut->WriteSettings();
#ifdef __unix__
    SDLOut->WriteSettings();
#endif
    SoundtouchCfg::WriteSettings();
    DebugConfig::WriteSettings();
}
示例#2
0
	void WriteSettings() const
	{
		CfgWriteStr( L"DSOUNDOUT", L"Device", m_Device.empty() ? L"default" : m_Device );
		CfgWriteInt( L"DSOUNDOUT", L"Buffer_Count", m_NumBuffers );
		CfgWriteBool( L"DSOUNDOUT", L"Disable_Global_Focus", m_DisableGlobalFocus );
		CfgWriteBool( L"DSOUNDOUT", L"Use_Hardware", m_UseHardware );
	}
示例#3
0
void WriteSettings()
{
	CfgWriteInt(L"MIXING",L"Interpolation",Interpolation);
	CfgWriteInt(L"MIXING",L"Reverb_Boost",ReverbBoost);

	CfgWriteBool(L"MIXING",L"Disable_Effects",EffectsDisabled);

	CfgWriteStr(L"OUTPUT",L"Output_Module", mods[OutputModule]->GetIdent() );
	CfgWriteInt(L"OUTPUT",L"Latency", SndOutLatencyMS);
	CfgWriteInt(L"OUTPUT",L"Synch_Mode", SynchMode);
	CfgWriteInt(L"OUTPUT",L"XAudio2_SpeakerConfiguration", numSpeakers);

	if( Config_WaveOut.Device.empty() ) Config_WaveOut.Device = L"default";
	CfgWriteStr(L"WAVEOUT",L"Device",Config_WaveOut.Device);
	CfgWriteInt(L"WAVEOUT",L"Buffer_Count",Config_WaveOut.NumBuffers);

	CfgWriteStr(L"DSP PLUGIN",L"Filename",dspPlugin);
	CfgWriteInt(L"DSP PLUGIN",L"ModuleNum",dspPluginModule);
	CfgWriteBool(L"DSP PLUGIN",L"Enabled",dspPluginEnabled);

	DSoundOut->WriteSettings();
	SoundtouchCfg::WriteSettings();
	DebugConfig::WriteSettings();

}
示例#4
0
	void WriteSettings() const
	{
		wxString api;
		switch(m_ApiId)
		{
		case paInDevelopment:	api = L"InDevelopment"; break; /* use while developing support for a new host API */
		case paDirectSound:		api = L"DirectSound"; break;
		case paMME:				api = L"MME"; break;
		case paASIO:			api = L"ASIO"; break;
		case paSoundManager:	api = L"SoundManager"; break;
		case paCoreAudio:		api = L"CoreAudio"; break;
		case paOSS:				api = L"OSS"; break;
		case paALSA:			api = L"ALSA"; break;
		case paAL:				api = L"AL"; break;
		case paBeOS:			api = L"BeOS"; break;
		case paWDMKS:			api = L"WDMKS"; break;
		case paJACK:			api = L"JACK"; break;
		case paWASAPI:			api = L"WASAPI"; break;
		case paAudioScienceHPI: api = L"AudioScienceHPI"; break;
		default: api = L"Unknown";
		}

		CfgWriteStr( L"PORTAUDIO", L"HostApi", api);
		CfgWriteStr( L"PORTAUDIO", L"Device", m_Device);

		CfgWriteBool( L"PORTAUDIO", L"Wasapi_Exclusive_Mode", m_WasapiExclusiveMode);
	}
示例#5
0
void WriteSettings()
{
	CfgWriteInt(L"MIXING",L"Interpolation",Interpolation);

	CfgWriteBool(L"MIXING",L"Disable_Effects",EffectsDisabled);
	CfgWriteBool(L"MIXING",L"DealiasFilter",postprocess_filter_dealias);
	CfgWriteInt(L"MIXING",L"FinalVolume",(int)(FinalVolume * 100 + 0.5f));

	CfgWriteBool(L"MIXING", L"AdvancedVolumeControl", AdvancedVolumeControl);
	CfgWriteFloat(L"MIXING", L"VolumeAdjustC(dB)", VolumeAdjustCdb);
	CfgWriteFloat(L"MIXING", L"VolumeAdjustFL(dB)", VolumeAdjustFLdb);
	CfgWriteFloat(L"MIXING", L"VolumeAdjustFR(dB)", VolumeAdjustFRdb);
	CfgWriteFloat(L"MIXING", L"VolumeAdjustBL(dB)", VolumeAdjustBLdb);
	CfgWriteFloat(L"MIXING", L"VolumeAdjustBR(dB)", VolumeAdjustBRdb);
	CfgWriteFloat(L"MIXING", L"VolumeAdjustSL(dB)", VolumeAdjustSLdb);
	CfgWriteFloat(L"MIXING", L"VolumeAdjustSR(dB)", VolumeAdjustSRdb);
	CfgWriteFloat(L"MIXING", L"VolumeAdjustLFE(dB)", VolumeAdjustLFEdb);

	CfgWriteStr(L"OUTPUT",L"Output_Module", mods[OutputModule]->GetIdent() );
	CfgWriteInt(L"OUTPUT",L"Latency", SndOutLatencyMS);
	CfgWriteInt(L"OUTPUT",L"Synch_Mode", SynchMode);
	CfgWriteInt(L"OUTPUT",L"SpeakerConfiguration", numSpeakers);
	CfgWriteInt( L"OUTPUT", L"DplDecodingLevel", dplLevel);

	if( Config_WaveOut.Device.empty() ) Config_WaveOut.Device = L"default";
	CfgWriteStr(L"WAVEOUT",L"Device",Config_WaveOut.Device);
	CfgWriteInt(L"WAVEOUT",L"Buffer_Count",Config_WaveOut.NumBuffers);

	CfgWriteStr(L"DSP PLUGIN",L"Filename",dspPlugin);
	CfgWriteInt(L"DSP PLUGIN",L"ModuleNum",dspPluginModule);
	CfgWriteBool(L"DSP PLUGIN",L"Enabled",dspPluginEnabled);
	
	PortaudioOut->WriteSettings();
	DSoundOut->WriteSettings();
	SoundtouchCfg::WriteSettings();
	DebugConfig::WriteSettings();

}
示例#6
0
char CfgReadBool(char *Section,char *Name,char Default) {
	char Data[255]="";
	GetPrivateProfileString(Section,Name,"",Data,255,CfgFile);
	Data[254]=0;
	if(strlen(Data)==0) {
		CfgWriteBool(Section,Name,Default);
		return Default;
	}

	if(strcmp(Data,"1")==0) return -1;
	if(strcmp(Data,"Y")==0) return -1;
	if(strcmp(Data,"T")==0) return -1;
	if(strcmp(Data,"YES")==0) return -1;
	if(strcmp(Data,"TRUE")==0) return -1;
	return 0;
}
示例#7
0
bool CfgReadBool(const TCHAR *Section,const TCHAR* Name, bool Default)
{
	TCHAR Data[255] = {0};

	GetPrivateProfileString( Section, Name, L"", Data, 255, CfgFile );
	Data[254]=0;
	if(wcslen(Data)==0) {
		CfgWriteBool(Section,Name,Default);
		return Default;
	}

	if(wcscmp(Data,L"1")==0) return true;
	if(wcscmp(Data,L"Y")==0) return true;
	if(wcscmp(Data,L"T")==0) return true;
	if(wcscmp(Data,L"YES")==0) return true;
	if(wcscmp(Data,L"TRUE")==0) return true;
	return false;
}
示例#8
0
void WriteSettings()
{
	CfgWriteBool(Section,L"Global_Enable",DebugEnabled);

	CfgWriteBool(Section,L"Show_Messages",             _MsgToConsole);
	CfgWriteBool(Section,L"Show_Messages_Key_On_Off",  _MsgKeyOnOff);
	CfgWriteBool(Section,L"Show_Messages_Voice_Off",   _MsgVoiceOff);
	CfgWriteBool(Section,L"Show_Messages_DMA_Transfer",_MsgDMA);
	CfgWriteBool(Section,L"Show_Messages_AutoDMA",     _MsgAutoDMA);
	CfgWriteBool(Section,L"Show_Messages_Overruns",    _MsgOverruns);
	CfgWriteBool(Section,L"Show_Messages_CacheStats",  _MsgCache);

	CfgWriteBool(Section,L"Log_Register_Access",_AccessLog);
	CfgWriteBool(Section,L"Log_DMA_Transfers",  _DMALog);
	CfgWriteBool(Section,L"Log_WAVE_Output",    _WaveLog);

	CfgWriteBool(Section,L"Dump_Info",  _CoresDump);
	CfgWriteBool(Section,L"Dump_Memory",_MemDump);
	CfgWriteBool(Section,L"Dump_Regs",  _RegDump);

	set_default_filenames();
	CfgWriteStr(Section,L"Access_Log_Filename",AccessLogFileName);
	CfgWriteStr(Section,L"WaveLog_Filename",   WaveLogFileName);
	CfgWriteStr(Section,L"DMA4Log_Filename",   DMA4LogFileName);
	CfgWriteStr(Section,L"DMA7Log_Filename",   DMA7LogFileName);

	CfgWriteStr(Section,L"Info_Dump_Filename",CoresDumpFileName);
	CfgWriteStr(Section,L"Mem_Dump_Filename", MemDumpFileName);
	CfgWriteStr(Section,L"Reg_Dump_Filename", RegDumpFileName);

}
示例#9
0
void SaveConfig() 
{
	CfgWriteBool(L"Interface", L"Logging", conf.Log);
}
示例#10
0
void WriteSettings()
{
	CfgWriteBool(Section,L"Global_Enable",DebugEnabled);

	CfgWriteBool(Section,L"Show_Messages",             _MsgToConsole);
	CfgWriteBool(Section,L"Show_Messages_Key_On_Off",  _MsgKeyOnOff);
	CfgWriteBool(Section,L"Show_Messages_Voice_Off",   _MsgVoiceOff);
	CfgWriteBool(Section,L"Show_Messages_DMA_Transfer",_MsgDMA);
	CfgWriteBool(Section,L"Show_Messages_AutoDMA",     _MsgAutoDMA);
	CfgWriteBool(Section,L"Show_Messages_Overruns",    _MsgOverruns);
	CfgWriteBool(Section,L"Show_Messages_CacheStats",  _MsgCache);

	CfgWriteBool(Section,L"Log_Register_Access",_AccessLog);
	CfgWriteBool(Section,L"Log_DMA_Transfers",  _DMALog);
	CfgWriteBool(Section,L"Log_WAVE_Output",    _WaveLog);

	CfgWriteBool(Section,L"Dump_Info",  _CoresDump);
	CfgWriteBool(Section,L"Dump_Memory",_MemDump);
	CfgWriteBool(Section,L"Dump_Regs",  _RegDump);

	CfgWriteBool(Section,L"Visual_Debug_Enabled", _visual_debug_enabled);

	// None of the logs strings are changable via GUI, so no point in bothering to
	// write them back out.
	CfgWriteStr(Section,L"Logs_Folder", CfgLogsFolder);
	CfgWriteStr(Section,L"Dumps_Folder",CfgDumpsFolder);

	CfgWriteStr(Section,L"Access_Log_Filename",AccessLogFileName);
	CfgWriteStr(Section,L"DMA4Log_Filename",   DMA4LogFileName);
	CfgWriteStr(Section,L"DMA7Log_Filename",   DMA7LogFileName);

	CfgWriteStr(Section,L"Info_Dump_Filename",CoresDumpFileName);
	CfgWriteStr(Section,L"Mem_Dump_Filename", MemDumpFileName);
	CfgWriteStr(Section,L"Reg_Dump_Filename", RegDumpFileName);
}