kwave  18.07.70
Kwave::WavFormatMap Class Reference

#include <WavFormatMap.h>

Inheritance diagram for Kwave::WavFormatMap:
Inheritance graph
Collaboration diagram for Kwave::WavFormatMap:
Collaboration graph

Public Member Functions

 WavFormatMap ()
 
virtual ~WavFormatMap ()
 
const QString & findName (unsigned int id)
 

Detailed Description

list of known wav file formats

Definition at line 33 of file WavFormatMap.h.

Constructor & Destructor Documentation

◆ WavFormatMap()

Kwave::WavFormatMap::WavFormatMap ( )

Constructor, fills the map with all known types

Definition at line 27 of file WavFormatMap.cpp.

References FMT.

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 }
#define FMT(x, y)

◆ ~WavFormatMap()

virtual Kwave::WavFormatMap::~WavFormatMap ( )
inlinevirtual

Destructor

Definition at line 40 of file WavFormatMap.h.

References findName().

40 {}
Here is the call graph for this function:

Member Function Documentation

◆ findName()

const QString & Kwave::WavFormatMap::findName ( unsigned int  id)

Returns the name of an id, or "unknown" if not found.

Definition at line 82 of file WavFormatMap.cpp.

References Kwave::WAVE_FORMAT_UNKNOWN.

Referenced by Kwave::WavDecoder::open(), and ~WavFormatMap().

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 }
Here is the caller graph for this function:

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