#include "KTypes.h"
Defines | |
| #define | VorbisQualToFloat(q) (((q&K_AF_SUBMASK)-K_AF_VORBIS_Q0)/10.f) |
| Converts a Vorbis quality from a EAudioFmt value to a float value. | |
| #define | VorbisQualToAudioFmt(q) ((KInt) (q * 10) + K_AF_VORBIS_Q0) |
| Converts a Vorbis quality from a float value to a EAudioFmt value. | |
Enumerations | |
| enum | EAudioFmt { K_AF_UNKNOWN = 0, K_AF_WAV = 0x010000, K_AF_AIFF = 0x020000, K_AF_AU = 0x030000, K_AF_FLAC = 0x170000, K_AF_CAF = 0x180000, K_AF_VORBIS = 0x510000, K_AF_MPG = 0x520000, K_AF_AAC = 0x530000, K_AF_PCM_S8 = 0x0001, K_AF_PCM_16 = 0x0002, K_AF_PCM_24 = 0x0003, K_AF_PCM_32 = 0x0004, K_AF_PCM_U8 = 0x0005, K_AF_FLOAT = 0x0006, K_AF_DOUBLE = 0x0007, K_AF_ULAW = 0x0010, K_AF_ALAW = 0x0011, K_AF_IMA_ADPCM = 0x0012, K_AF_MS_ADPCM = 0x0013, K_AF_VORBIS_Q1N = 0x00FF, K_AF_VORBIS_Q0 = 0x0100, K_AF_VORBIS_Q1 = 0x0101, K_AF_VORBIS_Q2 = 0x0102, K_AF_VORBIS_Q3 = 0x0103, K_AF_VORBIS_Q4 = 0x0104, K_AF_VORBIS_Q5 = 0x0105, K_AF_VORBIS_Q6 = 0x0106, K_AF_VORBIS_Q7 = 0x0107, K_AF_VORBIS_Q8 = 0x0108, K_AF_VORBIS_Q9 = 0x0109, K_AF_VORBIS_Q10 = 0x010A, K_AF_MASK_COMPR = 0xF000, K_AF_CBR = 0x1000, K_AF_ABR = 0x2000, K_AF_VBR = 0x3000, K_AF_MPEG_VERS = 0x00f0, K_AF_MPG_1_0 = 0x0010, K_AF_MPG_2_0 = 0x0020, K_AF_MPG_2_5 = 0x0030, K_AF_MPEG_LAYER = 0x000f, K_ENDIAN_FILE = 0x00000000, K_ENDIAN_LITTLE = 0x10000000, K_ENDIAN_BIG = 0x20000000, K_ENDIAN_CPU = 0x30000000, K_AF_SUBMASK = 0x0000FFFF, K_AF_TYPEMASK = 0x0FFF0000 } |
| Audio formats. More... | |
Functions | |
| KTL_API EAudioFmt | EAudioFmt_getMajorFmtFromString (KCString sFmtName) |
| Gets the audio format corresponding to the given string. | |
| KTL_API EAudioFmt | EAudioFmt_getSubFmtFromString (KCString sSubFmtName) |
| Gets the sub audio format corresponding to the given string. | |
| KTL_API KString | EAudioFmt_getMajorFmtName (const EAudioFmt fmt) |
| Gets an audio format string corresponding to the given code. | |
| KTL_API KString | EAudioFmt_getSubFmtName (const EAudioFmt fmt) |
| Gets the sub audio format corresponding to the given code. | |
| KTL_API KString | EAudioFmt_getEndianFmtName (const EAudioFmt fmt) |
| Obtains the mode Big Endian or Little Endian of the given audio format. | |
| KTL_API KInt | EAudioFmt_getNumberBits (const EAudioFmt fmt) |
| Obtains the bits number used by the given audio format. | |
| KTL_API KString | EAudioFmt_getSmallName (const EAudioFmt fmt) |
| Obtains the mnemonic of the given audio format. | |
| KTL_API KBool | EAudioFmt_isSndFileFmt (const EAudioFmt fmt) |
| Allows to know if the given format is an audio format. | |
| KTL_API EAudioFmt | k_getAudioType (KString path) |
| Obtains the audio format of the given file path. | |
| KTL_API KString | EAudioFmt_getExt (const EAudioFmt aFmt) |
| Obtains the extension of the given audio format. | |
| KTL_API KString | EAudioFmt_mpegSubFmt (const EAudioFmt aFmt) |
| Obtains the sub-format of given MPEG format. | |
EAudioFmt is based on libsndfile for better compatilities. See http://www.mega-nerd.com/libsndfile/ for more information on libsndfile.
|
|
Converts a Vorbis quality from a float value to a EAudioFmt value.
|
|
|
Converts a Vorbis quality from a EAudioFmt value to a float value.
|
|
|
Audio formats.
|
|
|
Obtains the mode Big Endian or Little Endian of the given audio format.
|
|
|
Obtains the extension of the given audio format.
|
|
|
Gets the audio format corresponding to the given string.
|
|
|
Gets an audio format string corresponding to the given code.
|
|
|
Obtains the bits number used by the given audio format.
|
|
|
Obtains the mnemonic of the given audio format.
|
|
|
Gets the sub audio format corresponding to the given string.
|
|
|
Gets the sub audio format corresponding to the given code.
|
|
|
Allows to know if the given format is an audio format.
|
|
|
Obtains the sub-format of given MPEG format.
|
|
|
Obtains the audio format of the given file path.
|
1.3.8