kwave  18.07.70
PlayBackTypesMap.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  PlayBackTypesMap.cpp - map for playback methods
3  -------------------
4  begin : Sat Feb 05 2005
5  copyright : (C) 2005 by Thomas Eschenbacher
6  email : 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 <KLocalizedString>
23 
25 #include "libkwave/String.h"
26 
27 //***************************************************************************
29 {
30  unsigned int index = 0;
31 
32 #ifdef HAVE_ALSA_SUPPORT
33  append(index++, Kwave::PLAYBACK_ALSA, _("alsa"),
34  _(I18N_NOOP("ALSA (Advanced Linux Sound Architecture)")) );
35 #endif /* HAVE_ALSA_SUPPORT */
36 
37 #ifdef HAVE_OSS_SUPPORT
38  append(index++, Kwave::PLAYBACK_OSS, _("oss"),
39  _(I18N_NOOP("OSS (Open Sound System)")) );
40 #endif /* HAVE_OSS_SUPPORT */
41 
42 #ifdef HAVE_PULSEAUDIO_SUPPORT
43  append(index++, Kwave::PLAYBACK_PULSEAUDIO, _("pulseaudio"),
44  _(I18N_NOOP("Pulse Audio")) );
45 #endif /* HAVE_PULSEAUDIO_SUPPORT */
46 
47 #ifdef HAVE_QT_AUDIO_SUPPORT
48  append(index++, Kwave::PLAYBACK_QT_AUDIO, _("qt_audio"),
49  _(I18N_NOOP("Qt Multimedia Audio")) );
50 #endif /* HAVE_QT_AUDIO_SUPPORT */
51 
52  if (!index) qWarning("no playback method defined!");
53 }
54 
55 //***************************************************************************
56 //***************************************************************************
virtual void fill() Q_DECL_OVERRIDE
virtual void append(unsigned int index, Kwave::playback_method_t data, const QString &name, const QString &description)
Definition: TypesMap.h:72
#define _(m)
Definition: memcpy.c:66