src/ALAC/ : Code improvements.

* Make internal APIs const correct.
* Use mNumSamples field from encoder/decoder state struct
  instead of passing to encode/decode functions.