/* Our own loadcheck which will use fixed 3.0x clock for player and 4.0x for USB. */ void MyLoadCheck(struct CodecServices *cs, s_int16 n) { if (cs == NULL) { if (n) { if (clockX != 8) { clockX = 8; /* USB requires 4.0x! */ SetRate(hwSampleRate); } return; } if (clockX != 6) { clockX = 6; /* Otherwise 3.0x */ SetRate(hwSampleRate); } return; } /* cs is always non-NULL here */ if (cs->gain != player.volumeOffset) { player.volumeOffset = cs->gain; /* vorbis-gain */ PlayerVolume(); } }
//-------------------------------------------------------------------------- void SetVOL(register u_int16 vol){ player.volume = vol; PlayerVolume(); }