kwave
18.07.70
WavFormatMap.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
WavFormatMap.cpp - list of known wav file formats
3
-------------------
4
begin : Apr 28 2002
5
copyright : (C) 2002 by Thomas Eschenbacher
6
email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de>
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#include "config.h"
19
20
#include <QString>
21
22
#include "
libkwave/String.h
"
23
24
#include "
WavFormatMap.h
"
25
26
//***************************************************************************
27
Kwave::WavFormatMap::WavFormatMap
()
28
{
29
#define FMT(x,y) insert(WAVE_FORMAT_##x,_(y));
30
FMT
(UNKNOWN ,
" Unknown; Microsoft Corporation "
);
31
FMT
(PCM ,
" Microsoft PCM format "
);
32
FMT
(MS_ADPCM ,
" Microsoft ADPCM "
);
33
FMT
(IEEE_FLOAT ,
" Microsoft 32 bit float format "
);
34
FMT
(IBM_CVSD ,
" IBM Corporation "
);
35
FMT
(ALAW ,
" A-Law; Microsoft Corporation "
);
36
FMT
(MULAW ,
" U-Law; Microsoft Corporation "
);
37
FMT
(OKI_ADPCM ,
" ADPCM; OKI "
);
38
FMT
(IMA_ADPCM ,
" ADPCM; Intel Corporation "
);
39
FMT
(MEDIASPACE_ADPCM ,
" ADPCM; Videologic "
);
40
FMT
(SIERRA_ADPCM ,
" ADPCM; Sierra Semiconductor Corp "
);
41
FMT
(G723_ADPCM ,
" G723 ADPCM; Antex Electronics Corporation "
);
42
FMT
(DIGISTD ,
" DIGISTD; DSP Solutions, Inc. "
);
43
FMT
(DIGIFIX ,
" DIGIFIX; DSP Solutions, Inc. "
);
44
FMT
(DIALOGIC_OKI_ADPCM ,
" OKI ADPCM; Dialogic Corporation "
);
45
FMT
(MEDIAVISION_ADPCM ,
" ADPCM; Media Vision, Inc. "
);
46
FMT
(YAMAHA_ADPCM ,
" ADPCM; Yamaha Corporation of America "
);
47
FMT
(SONARC ,
" SONARC; Speech Compression "
);
48
FMT
(DSPGROUP_TRUESPEECH ,
" Truespeech; DSP Group, Inc "
);
49
FMT
(ECHOSC1 ,
" SC1; Echo Speech Corporation "
);
50
FMT
(AUDIOFILE_AF18 ,
" AF18; Audiofile, Inc. "
);
51
FMT
(APTX ,
" APTX; Audio Processing Technology "
);
52
FMT
(AUDIOFILE_AF10 ,
" AF10; Audiofile, Inc. "
);
53
FMT
(DOLBY_AC2 ,
" Dolby AC2; Dolby Laboratories "
);
54
FMT
(GSM610 ,
" GSM610; Microsoft Corporation "
);
55
FMT
(MSNAUDIO ,
" MSN audio; Microsoft Corporation "
);
56
FMT
(ANTEX_ADPCME ,
" ADPCME; Antex Electronics Corporation "
);
57
FMT
(CONTROL_RES_VQLPC ,
" RES VQLPC; Control Resources Limited "
);
58
FMT
(DIGIREAL ,
" DigiReal; DSP Solutions, Inc. "
);
59
FMT
(DIGIADPCM ,
" DigiADPCM; DSP Solutions, Inc. "
);
60
FMT
(CONTROL_RES_CR10 ,
" Res CR10; Control Resources Limited "
);
61
FMT
(NMS_VBXADPCM ,
" VBCADPCM; Natural MicroSystems "
);
62
FMT
(ROCKWELL_ADPCM ,
" ADPCM; Rockwell International "
);
63
FMT
(ROCKWELL_DIGITALK ,
" DigiTalk; Rockwell International "
);
64
FMT
(G721_ADPCM ,
" G721 ADPCM; Antex Electronics Corporation "
);
65
FMT
(MPEG ,
" MPEG; Microsoft Corporation "
);
66
FMT
(MPEGLAYER3 ,
" MPEG 3 Layer 1 "
);
67
FMT
(IBM_MULAW ,
" IBM mu-law format "
);
68
FMT
(IBM_ALAW ,
" IBM a-law format "
);
69
FMT
(IBM_ADPCM ,
" IBM AVC Adaptive Differential PCM format "
);
70
FMT
(CREATIVE_ADPCM ,
" ADPCM; Creative Labs, Inc "
);
71
FMT
(FM_TOWNS_SND ,
" FM TOWNS SND; Fujitsu Corp. "
);
72
FMT
(OLIGSM ,
" GSM; Ing C. Olivetti & C., S.p.A. "
);
73
FMT
(OLIADPCM ,
" ADPCM; Ing C. Olivetti & C., S.p.A. "
);
74
FMT
(OLICELP ,
" CELP; Ing C. Olivetti & C., S.p.A. "
);
75
FMT
(OLISBC ,
" SBC; Ing C. Olivetti & C., S.p.A. "
);
76
FMT
(OLIOPR ,
" OPR; Ing C. Olivetti & C., S.p.A. "
);
77
FMT
(EXTENSIBLE ,
" Extensible "
);
78
#undef FMT
79
}
80
81
//***************************************************************************
82
const
QString &
Kwave::WavFormatMap::findName
(
unsigned
int
id
)
83
{
84
if
(!contains(static_cast<Kwave::wav_format_id>(
id
)))
85
return
(*
this
)[
WAVE_FORMAT_UNKNOWN
];
86
return
(*
this
)[
static_cast<
Kwave::wav_format_id
>
(id)];
87
}
88
89
//***************************************************************************
90
//***************************************************************************
WavFormatMap.h
Kwave::WavFormatMap::WavFormatMap
WavFormatMap()
Definition:
WavFormatMap.cpp:27
Kwave::WAVE_FORMAT_UNKNOWN
Definition:
WavFileFormat.h:30
Kwave::wav_format_id
wav_format_id
Definition:
WavFileFormat.h:28
String.h
FMT
#define FMT(x, y)
Kwave::WavFormatMap::findName
const QString & findName(unsigned int id)
Definition:
WavFormatMap.cpp:82
plugins
codec_wav
WavFormatMap.cpp
Generated on Sat Mar 24 2018 09:10:26 for kwave by
1.8.13