Libav
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
libavutil
audio_fifo.h
Go to the documentation of this file.
1
/*
2
* Audio FIFO
3
* Copyright (c) 2012 Justin Ruggles <justin.ruggles@gmail.com>
4
*
5
* This file is part of Libav.
6
*
7
* Libav is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* Libav is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with Libav; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
27
#ifndef AVUTIL_AUDIO_FIFO_H
28
#define AVUTIL_AUDIO_FIFO_H
29
30
#include "
avutil.h
"
31
#include "
fifo.h
"
32
#include "
samplefmt.h
"
33
46
typedef
struct
AVAudioFifo
AVAudioFifo
;
47
53
void
av_audio_fifo_free
(
AVAudioFifo
*af);
54
63
AVAudioFifo
*
av_audio_fifo_alloc
(
enum
AVSampleFormat
sample_fmt
,
int
channels
,
64
int
nb_samples
);
65
73
int
av_audio_fifo_realloc
(
AVAudioFifo
*af,
int
nb_samples
);
74
90
int
av_audio_fifo_write
(
AVAudioFifo
*af,
void
**
data
,
int
nb_samples
);
91
104
int
av_audio_fifo_read
(
AVAudioFifo
*af,
void
**
data
,
int
nb_samples
);
105
115
int
av_audio_fifo_drain
(
AVAudioFifo
*af,
int
nb_samples
);
116
124
void
av_audio_fifo_reset
(
AVAudioFifo
*af);
125
132
int
av_audio_fifo_size
(
AVAudioFifo
*af);
133
140
int
av_audio_fifo_space
(
AVAudioFifo
*af);
141
146
#endif
/* AVUTIL_AUDIO_FIFO_H */
Generated on Sun Jun 1 2014 17:55:37 for Libav by
1.8.1.2