GetSoundBufferSizeDefault
function · sound · orchestration
- Address
0x457520· 38 bytes, up to0x457545- Signature
const char * __cdecl (void)- Meaning
- Returns "50" for processor class 1, else "100"; the flag 0xc4ec54 is set before it runs
- Confidence
- verified, proof one
- Finding
- console/hardware#processor-class
Finding: Processor class in console: hardware
DetectHardware (0x641260) stores the processor class at +0x18 of the detection record at every start-up: 1 when the frequency from OsGetCpuFrequency (0x42c060), as a double times the float 1e-6 (0x80e2e4), exceeds the float 1500.0 (0x80e2e0), else 0. A rate of 1,500,000,004 Hz or more counts; from the power call, whose rates are multiples of 10⁶, 1501 MHz or more, and 1500 MHz gives 0. ConsoleDeviceInitialize then sets the flag byte 0xc4ec54 to 1, and the sound CVars register later, so SoundBufferSize (0x457520) defaults to 50 for class 1 and 100 for class 0; its flag test is always met.
The derivation is in the doc.
Callers 1
- RegisterCVars sound
Callees 1
- GetHardwareRecord console
Calls and jumps by a bare address, from tables/calls.tsv.