Show More
Commit Description:
Fix issue with simulation....
Commit Description:
Fix issue with simulation.
Previously, if there was more than one tick being advanced at once, it would
overshoot how many ticks it covered. So if it was covering 5 ticks and each
tick happens every 100 units, rather than recording that it had simulated
through t= 500, it would increase the cumulative time for each tick, recording
that it had simulated through t=2500.
Add error message, too.
References:
File last commit:
Show/Diff file:
Action:
FNA/lib/FAudio/utils/testvolumemeter/audio.cpp
27 lines | 592 B | text/x-c | CppLexer
27 lines | 592 B | text/x-c | CppLexer
r0 | #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; | ||||
} | ||||
} | ||||