Debian Codegraph @

android/app/jni/extern/vgsound_emu-modified/vgsound_emu/src/template/template.cpp

raw
1 /*
2 License: Zlib
3 see https://gitlab.com/cam900/vgsound_emu/-/blob/main/LICENSE for more details
4
5 Copyright holder(s): (Author name)
6 Template for sound emulation core
7 */
8
9 #include "template.hpp"
10
11 void template_core::tick()
12 {
13 // tick per each clock
14 }
15
16 void template_core::reset()
17 {
18 // reset this chip
19 std::fill(m_array.begin(), m_array.end(), 0); // std::fill() for fill std::array, std::vector
20 }
21
22 /*
23 template voice function
24 void template_core::voice_t::tick()
25 {
26 // tick per each voice
27 }
28
29 void template_core::voice_t::reset()
30 {
31 // reset this voice
32 }
33 */