MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / waveNoise

Method waveNoise

extlibs/soloud/src/audiosource/tedsid/sid.cpp:47–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47inline int SIDsound::waveNoise(SIDVoice &v)
48{
49 unsigned int shiftReg = v.shiftReg;
50 // Pick out bits to make output value, left shift by 4
51 return
52 (bit(shiftReg,22) << 11) |
53 (bit(shiftReg,20) << 10) |
54 (bit(shiftReg,16) << 9) |
55 (bit(shiftReg,13) << 8) |
56 (bit(shiftReg,11) << 7) |
57 (bit(shiftReg, 7) << 6) |
58 (bit(shiftReg, 4) << 5) |
59 (bit(shiftReg, 2) << 4);
60};
61
62void SIDsound::setModel(unsigned int model)
63{

Callers

nothing calls this directly

Calls 1

bitFunction · 0.85

Tested by

no test coverage detected