MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / initPhysics

Method initPhysics

examples/TinyAudio/TinyAudioExample.cpp:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 virtual void initPhysics()
79 {
80 int numSoundSources = 32;
81 bool useRealTimeDac = true;
82
83 m_soundEngine.init(numSoundSources, useRealTimeDac);
84
85 m_wavId = m_soundEngine.loadWavFile("wav/xylophone.rosewood.ff.C5B5_1.wav");
86 int sampleRate = m_soundEngine.getSampleRate();
87 }
88
89 virtual void exitPhysics()
90 {

Callers

nothing calls this directly

Calls 3

loadWavFileMethod · 0.80
initMethod · 0.45
getSampleRateMethod · 0.45

Tested by

no test coverage detected