GNU Radio C++ API Reference gcd20ee2
The Free & Open Software Radio Ecosystem
Loading...
Searching...
No Matches
wavfile.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2008,2013 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11// This file stores all the RIFF file type knowledge for the wavfile_*
12// gnuradio/blocks.
13
14#ifndef _GR_WAVFILE_H_
15#define _GR_WAVFILE_H_
16
17namespace gr {
18namespace blocks {
19
20//! WAV file header information.
22
23 //! sample rate [S/s]
25
26 //! Number of channels
27 int nchans;
28
29 //! Bytes per sample
31
32 //! Number of samples per channel
34
35 //! sndfile format
36 int format;
37
38 //! sndfile format
40};
41
43 FORMAT_WAV = 0x010000,
44 FORMAT_FLAC = 0x170000,
45 FORMAT_OGG = 0x200000,
46 FORMAT_RF64 = 0x220000,
47};
48
60
61} /* namespace blocks */
62} /* namespace gr */
63
66
67#endif /* _GR_WAVFILE_H_ */
Definition abs_blk.h:20
wavfile_subformat_t
Definition wavfile.h:49
@ FORMAT_PCM_24
Definition wavfile.h:52
@ FORMAT_PCM_16
Definition wavfile.h:51
@ FORMAT_PCM_U8
Definition wavfile.h:54
@ FORMAT_OPUS
Definition wavfile.h:58
@ FORMAT_PCM_S8
Definition wavfile.h:50
@ FORMAT_VORBIS
Definition wavfile.h:57
@ FORMAT_PCM_32
Definition wavfile.h:53
@ FORMAT_DOUBLE
Definition wavfile.h:56
@ FORMAT_FLOAT
Definition wavfile.h:55
wavfile_format_t
Definition wavfile.h:42
@ FORMAT_RF64
Definition wavfile.h:46
@ FORMAT_OGG
Definition wavfile.h:45
@ FORMAT_FLAC
Definition wavfile.h:44
@ FORMAT_WAV
Definition wavfile.h:43
GNU Radio logging wrapper.
Definition basic_block.h:29
WAV file header information.
Definition wavfile.h:21
int nchans
Number of channels.
Definition wavfile.h:27
long long samples_per_chan
Number of samples per channel.
Definition wavfile.h:33
int bytes_per_sample
Bytes per sample.
Definition wavfile.h:30
int sample_rate
sample rate [S/s]
Definition wavfile.h:24
int format
sndfile format
Definition wavfile.h:36
int subformat
sndfile format
Definition wavfile.h:39
gr::blocks::wavfile_format_t wavfile_format_t
Definition wavfile.h:64
gr::blocks::wavfile_subformat_t wavfile_subformat_t
Definition wavfile.h:65