MCPcopy Create free account
hub / github.com/clementgallet/libTAS / init

Method init

src/library/audio/AudioSource.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void AudioSource::init(void)
66{
67 volume = 1.0f;
68 pitch = 1.0f;
69 looping = false;
70 source = SOURCE_UNDETERMINED;
71 state = SOURCE_INITIAL;
72 buffer_queue.clear();
73 callback = nullptr;
74 callback_data = nullptr;
75 rewind();
76}
77
78void AudioSource::rewind(void)
79{

Callers 2

initFunction · 0.45
mixWithMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected