Set ps in the header to the predictor and scale value of the sample's first frame.
Set ps in the header to the predictor and scale value of the sample's first frame.

jackoalan/gc-dspadpcm-encode,Thealexbarney/gc-dspadpcm-encode