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
24
#include "
libkwave/PlayBackTypesMap.h
"
25
#include "
libkwave/String.h
"
26
27
//***************************************************************************
28
void
Kwave::PlayBackTypesMap::fill
()
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
//***************************************************************************
Kwave::PLAYBACK_ALSA
Definition:
PlayBackParam.h:36
Kwave::PLAYBACK_PULSEAUDIO
Definition:
PlayBackParam.h:35
Kwave::PLAYBACK_QT_AUDIO
Definition:
PlayBackParam.h:34
Kwave::PlayBackTypesMap::fill
virtual void fill() Q_DECL_OVERRIDE
Definition:
PlayBackTypesMap.cpp:28
PlayBackTypesMap.h
Kwave::TypesMap< unsigned int, Kwave::playback_method_t >::append
virtual void append(unsigned int index, Kwave::playback_method_t data, const QString &name, const QString &description)
Definition:
TypesMap.h:72
Kwave::PLAYBACK_OSS
Definition:
PlayBackParam.h:37
_
#define _(m)
Definition:
memcpy.c:66
String.h
libkwave
PlayBackTypesMap.cpp
Generated on Sat Mar 24 2018 09:10:25 for kwave by
1.8.13