Om
1.0.0
A universal framework for multimedia simulation
|
A class used to represent a 24-bit integer number. More...
#include <omSoundInt24.h>
Public Member Functions | |
Int24 () | |
Create a 24-bit sample equal to 0. More... | |
Int24 (Int32 value) | |
Create a 24-bit sample from the specified 32-bit integer sample, discarding the lower bits. More... | |
operator Int32 () const | |
Cast this 24-bit sample to a 32-bit integer sample. More... | |
A class used to represent a 24-bit integer number.
This class helps facilitate operations on 24-bit sound samples by providing methods which pack and unpack a 24-bit sound sample from/to a 32-bit integer sound sample. This class should be exactly 24 bits wide, allowing its use in arrays of samples.
|
inline |
Create a 24-bit sample equal to 0.
|
inline |
Create a 24-bit sample from the specified 32-bit integer sample, discarding the lower bits.
|
inline |
Cast this 24-bit sample to a 32-bit integer sample.