fccm / OCamlSDL2

OCaml interface to SDL 2.0 (for Linux, Windows, MacOS, and ChromeBook)
Other
51 stars 10 forks source link

added audioformat #6

Closed piotrm0 closed 10 years ago

fccm commented 10 years ago

Why some values are commented in the function "Val_SDL_AudioFormat()"?

piotrm0 commented 10 years ago

Those are synonyms; the compiler complains if you have multiple cases for the same thing inside switch.

Best, Piotr (Peter) Mardziel piotrm@cs.umd.edu http://www.cs.umd.edu/~piotrm

On Mar 14, 2014, at 4:16, Blue Prawn notifications@github.com wrote:

Why some values are commented in the function "Val_SDL_AudioFormat()"?

— Reply to this email directly or view it on GitHub.

fccm commented 10 years ago

could you add this explanation as a comment in the code of this function?

piotrm0 commented 10 years ago

Done.