blob: c352f6a8942d8ee3deb5d424b8e6575b514c7b98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
/***************************************************************************
oss-sound-configuration.h - description
-------------------
begin : Thu Sep 30 2004
copyright : (C) 2004 by Martin Witte
email : witte@kawo1.rwth-aachen.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KRADIO_STREAMING_CONFIGURATION_H
#define KRADIO_STREAMING_CONFIGURATION_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "streaming-configuration-ui.h"
#include "streaming.h"
#define RATE_48000_IDX 0
#define RATE_44100_IDX 1
#define RATE_22050_IDX 2
#define RATE_11025_IDX 3
#define CHANNELS_STEREO_IDX 0
#define CHANNELS_MONO_IDX 1
#define SIGN_SIGNED_IDX 0
#define SIGN_UNSIGNED_IDX 1
#define BITS_16_IDX 0
#define BITS_8_IDX 1
#define ENDIAN_LITTLE_IDX 0
#define ENDIAN_BIG_IDX 1
#define FORMAT_RAW_IDX 0
class StreamingConfiguration : public StreamingConfigurationUI
{
Q_OBJECT
public :
StreamingConfiguration (TQWidget *parent, StreamingDevice *streamer);
~StreamingConfiguration ();
protected slots:
void slotOK();
void slotCancel();
void slotUpdateConfig();
void slotNewPlaybackChannel();
void slotDeletePlaybackChannel();
void slotUpPlaybackChannel();
void slotDownPlaybackChannel();
void slotNewCaptureChannel();
void slotDeleteCaptureChannel();
void slotUpCaptureChannel();
void slotDownCaptureChannel();
void slotPlaybackSelectionChanged();
void slotCaptureSelectionChanged();
void slotUpdateSoundFormat();
void slotSetDirty();
protected:
void setStreamOptions(const SoundFormat &sf, int BufferSize);
void getStreamOptions(SoundFormat &sf, int &BufferSize) const ;
TQValueList<SoundFormat> m_PlaybackSoundFormats, m_CaptureSoundFormats;
TQValueList<int> m_PlaybackBufferSizes, m_CaptureBufferSizes;
bool m_ignore_updates;
bool m_dirty;
StreamingDevice *m_StreamingDevice;
};
#endif
|