Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::sound::base::Int24 Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

om::sound::base::Int24::Int24 ( )
inline

Create a 24-bit sample equal to 0.

om::sound::base::Int24::Int24 ( Int32  value)
inline

Create a 24-bit sample from the specified 32-bit integer sample, discarding the lower bits.

Member Function Documentation

om::sound::base::Int24::operator Int32 ( ) const
inline

Cast this 24-bit sample to a 32-bit integer sample.


The documentation for this class was generated from the following file: