Commit Description:
Add timers for Simulation and various engines...
Commit Description:
Add timers for Simulation and various engines Starting to add additional timers for different stages of the process of updating in order to get more insight into what is slowing it down. The update takes 9ms, which is much longer than it used to. Engine-specific timers are coming later.
File last commit:
Show/Diff file:
Action:
FNA/lib/FAudio/utils/testvolumemeter/audio.cpp
27 lines | 592 B | text/x-c | CppLexer
#include "audio.h"
PFN_AUDIO_DESTROY_CONTEXT audio_destroy_context = NULL;
PFN_AUDIO_WAVE_LOAD audio_wave_load = NULL;
PFN_AUDIO_WAVE_PLAY audio_wave_play = NULL;
PFN_AUDIO_UPDATE_VOLUMEMETER audio_update_volumemeter = NULL;
extern AudioContext* xaudio_create_context();
extern AudioContext* faudio_create_context();
AudioContext* audio_create_context(AudioEngine p_engine)
{
switch (p_engine)
{
#ifdef HAVE_XAUDIO2
case AudioEngine_XAudio2:
return xaudio_create_context();
#endif
case AudioEngine_FAudio:
return faudio_create_context();
default:
return NULL;
}
}