Skip to content
chino edited this page Jan 5, 2013 · 1 revision

Format

Sounds are currently in wav format.

There is some interest to move them to other compressed and open formats.

CD Audio / Music

See the FAQ.

General Code Layout

Note: This information may be out dated now.

RenderScene()
	STATUS_Normal:
	STATUS_SinglePlayer:
		ProcessLoopingSfx()
			for each looping sfx
				if sound not in range and loaded
					release the sound
				if in range and not loaded
					load it 
				if in range and loaded
					play it 

ProcessSoundRoutines()

	for each SfxThreadInfo[]

		loads sound file into temporary buffer

		if SfxThreadInfo.type == normal | panned | taunt
		{
			play sound
			add to SfxHolder ist
				if failed to add then free holder
		}

		if type is looping
			add to SpotSfxList() to get played in ProcessLoopingSfx()
Clone this wiki locally