Om
1.0.0
A universal framework for multimedia simulation
|
An enum class representing the different kinds of sound encoding formats. More...
#include <omSoundFormat.h>
Public Types | |
enum | Enum { UNDEFINED, WAVE, AIFF, OGG, MP3, M4A, FLAC, CAF } |
An enum type representing the different kinds of sound encoding formats. More... | |
Public Member Functions | |
SoundFormat () | |
Create an sound format object with an UNDEFINED sound format. More... | |
SoundFormat (SoundFormat::Enum newFormat) | |
Create a sound format object from the specified sound format Enum. More... | |
SoundFormat (const om::resources::ResourceFormat &newFormat) | |
Create a sound format object from the specified resource format. More... | |
operator Enum () const | |
Convert this sound format to an enum value. More... | |
Bool | isLossy () const |
Return whether or not this sound format is lossy (loses information). More... | |
UTF8String | getExtension () const |
Return the standard file extension used for this sound format. More... | |
String | toString () const |
Return a string representation of the sound format. More... | |
operator String () const | |
Convert this sound format into a string representation. More... | |
Static Public Member Functions | |
static SoundFormat | getFormatForExtension (const UTF8String &extension) |
Return a sound format which corresponds to the format with the given extension string. More... | |
Static Public Attributes | |
static const om::resources::ResourceFormat | WAVE_FORMAT |
The resource format for WAVE sound files. More... | |
static const om::resources::ResourceFormat | AIFF_FORMAT |
The resource format for AIFF sound files. More... | |
static const om::resources::ResourceFormat | OGG_FORMAT |
The resource format for OGG sound files. More... | |
static const om::resources::ResourceFormat | MP3_FORMAT |
The resource format for MP3 sound files. More... | |
static const om::resources::ResourceFormat | M4A_FORMAT |
The resource format for M4A sound files. More... | |
static const om::resources::ResourceFormat | FLAC_FORMAT |
The resource format for FLAC sound files. More... | |
static const om::resources::ResourceFormat | CAF_FORMAT |
The resource format for CAF sound files. More... | |
An enum class representing the different kinds of sound encoding formats.
An enum type representing the different kinds of sound encoding formats.
|
inline |
Create an sound format object with an UNDEFINED sound format.
|
inline |
Create a sound format object from the specified sound format Enum.
om::sound::base::SoundFormat::SoundFormat | ( | const om::resources::ResourceFormat & | newFormat | ) |
Create a sound format object from the specified resource format.
|
inline |
Convert this sound format to an enum value.
Bool om::sound::base::SoundFormat::isLossy | ( | ) | const |
Return whether or not this sound format is lossy (loses information).
Lossy formats will suffer from generation loss each time they are re-encoded.
UTF8String om::sound::base::SoundFormat::getExtension | ( | ) | const |
Return the standard file extension used for this sound format.
|
static |
Return a sound format which corresponds to the format with the given extension string.
String om::sound::base::SoundFormat::toString | ( | ) | const |
Return a string representation of the sound format.
|
inline |
Convert this sound format into a string representation.
|
static |
The resource format for WAVE sound files.
|
static |
The resource format for AIFF sound files.
|
static |
The resource format for OGG sound files.
|
static |
The resource format for MP3 sound files.
|
static |
The resource format for M4A sound files.
|
static |
The resource format for FLAC sound files.
|
static |
The resource format for CAF sound files.