MCPcopy Create free account
hub / github.com/doldecomp/mkdd / setOutputRate

Function setOutputRate

libs/JSystem/JAudio/System/JASAiCtrl.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void setOutputRate(JASOutputRate outputRate) {
94 sOutputRate = outputRate;
95 if (outputRate == OutputRate_32kHz) {
96 sSubFrames = 7;
97 sDacRate = 32000.0f;
98 }
99 else {
100 sSubFrames = 10;
101 sDacRate = 48000.0f; // but i want this
102 }
103 sDacRate *= 1.0008897f; // ?
104}
105
106void updateDac() {
107 static u32 dacp = 0;

Callers 1

initAIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected