示例#1
0
void C4PacketPing::CompileFunc(StdCompiler *pComp)
{
	uint32_t time = tTime.AsInt();
	pComp->Value(mkNamingAdapt(time, "Time", 0U));
	tTime = C4TimeMilliseconds(time);

	pComp->Value(mkNamingAdapt(iPacketCounter, "PacketCounter", 0U));
}
示例#2
0
void C4MusicFileOgg::Clear()
{
	// clear ogg file
	if (loaded)
	{
		ov_clear(&ogg_file);
		loaded = false;
	}
	categories.clear();
	is_loading_from_file = false;
	source_file.Close();
	last_source_file_pos = 0;
	last_playback_pos_sec = 0;
	last_interruption_time = C4TimeMilliseconds();
}