What is the "standard way" of working with 24-bit audio? Well, there are no 24-bit data types available, really. Here are the methods that come into my mind:
- Represent 24-bit audio samples as 32-bit ints and ignore the upper eight bits.
- Just like (1) but ignore the lower eight bits.
- Represent 24-bit audio samples as 32-bit floats.
- Represent the samples as structs of 3 bytes (acceptable for C/C++, but bad for Java).
How do you work this out?