kwave
18.07.70
|
#include "config.h"
#include <errno.h>
#include <math.h>
#include <QtGlobal>
#include "libkwave/Compression.h"
#include "libkwave/String.h"
#include "libkwave/Utils.h"
#include "Record-ALSA.h"
Go to the source code of this file.
Macros | |
#define | DEFAULT_DEVICE (i18n("DSNOOP plugin") + _("|sound_note")) |
#define | ELEMENTS_OF(__array__) (sizeof(__array__) / sizeof(__array__[0])) |
#define | SND_PCM_FORMAT_S18_3 SND_PCM_FORMAT_S18_3BE |
#define | SND_PCM_FORMAT_U18_3 SND_PCM_FORMAT_U18_3BE |
#define | SND_PCM_FORMAT_U20_3 SND_PCM_FORMAT_U20_3BE |
#define | SND_PCM_FORMAT_S20_3 SND_PCM_FORMAT_S20_3BE |
#define | SND_PCM_FORMAT_U24_3 SND_PCM_FORMAT_U24_3BE |
#define | SND_PCM_FORMAT_S24_3 SND_PCM_FORMAT_S24_3BE |
Functions | |
static Kwave::SampleFormat::Format | sample_format_of (snd_pcm_format_t fmt) |
static Kwave::byte_order_t | endian_of (snd_pcm_format_t fmt) |
static Kwave::Compression::Type | compression_of (snd_pcm_format_t fmt) |
Variables | |
static const snd_pcm_format_t | _known_formats [] |
#define DEFAULT_DEVICE (i18n("DSNOOP plugin") + _("|sound_note")) |
gui name of the default device
Definition at line 36 of file Record-ALSA.cpp.
Referenced by Kwave::RecordALSA::scanDevices(), and Kwave::RecordALSA::supportedDevices().
#define ELEMENTS_OF | ( | __array__ | ) | (sizeof(__array__) / sizeof(__array__[0])) |
helper macro: returns the number of elements in an array
Definition at line 39 of file Record-ALSA.cpp.
Referenced by Kwave::RecordALSA::detectSampleRates().
#define SND_PCM_FORMAT_S18_3 SND_PCM_FORMAT_S18_3BE |
Definition at line 46 of file Record-ALSA.cpp.
#define SND_PCM_FORMAT_S20_3 SND_PCM_FORMAT_S20_3BE |
Definition at line 49 of file Record-ALSA.cpp.
#define SND_PCM_FORMAT_S24_3 SND_PCM_FORMAT_S24_3BE |
Definition at line 51 of file Record-ALSA.cpp.
#define SND_PCM_FORMAT_U18_3 SND_PCM_FORMAT_U18_3BE |
Definition at line 47 of file Record-ALSA.cpp.
#define SND_PCM_FORMAT_U20_3 SND_PCM_FORMAT_U20_3BE |
Definition at line 48 of file Record-ALSA.cpp.
#define SND_PCM_FORMAT_U24_3 SND_PCM_FORMAT_U24_3BE |
Definition at line 50 of file Record-ALSA.cpp.
|
static |
Definition at line 177 of file Record-ALSA.cpp.
References Kwave::Compression::G711_ALAW, Kwave::Compression::G711_ULAW, Kwave::Compression::GSM, Kwave::Compression::MPEG_LAYER_I, Kwave::Compression::MS_ADPCM, and Kwave::Compression::NONE.
Referenced by Kwave::RecordALSA::detectCompressions(), Kwave::RecordALSA::detectSampleFormats(), Kwave::RecordALSA::mode2format(), and Kwave::RecordALSA::supportedBits().
|
static |
find out the endianness of an ALSA format
Definition at line 167 of file Record-ALSA.cpp.
References Kwave::BigEndian, Kwave::CpuEndian, and Kwave::LittleEndian.
Referenced by Kwave::RecordALSA::endianness().
|
static |
find out the SampleFormat of an ALSA format
Definition at line 148 of file Record-ALSA.cpp.
References Kwave::SampleFormat::Double, Kwave::SampleFormat::Float, Kwave::SampleFormat::Signed, Kwave::SampleFormat::Unknown, and Kwave::SampleFormat::Unsigned.
Referenced by Kwave::RecordALSA::detectSampleFormats(), and Kwave::RecordALSA::mode2format().
|
static |
Global list of all known sample formats.
The sort order should be:
Definition at line 77 of file Record-ALSA.cpp.
Referenced by Kwave::RecordALSA::detectCompressions(), Kwave::RecordALSA::detectSampleFormats(), Kwave::RecordALSA::detectSupportedFormats(), Kwave::RecordALSA::endianness(), Kwave::RecordALSA::initialize(), Kwave::RecordALSA::mode2format(), and Kwave::RecordALSA::supportedBits().