World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
audio_fifo.h
См. документацию.
1 /*
2  * Audio FIFO
3  * Copyright (c) 2012 Justin Ruggles <justin.ruggles@gmail.com>
4  *
5  * This file is part of FFmpeg.
6  *
7  * FFmpeg 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  * FFmpeg 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 FFmpeg; 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 
49 typedef struct AVAudioFifo AVAudioFifo;
50 
57 
66 AVAudioFifo *av_audio_fifo_alloc(enum AVSampleFormat sample_fmt, int channels,
67  int nb_samples);
68 
76 av_warn_unused_result
77 int av_audio_fifo_realloc(AVAudioFifo *af, int nb_samples);
78 
95 int av_audio_fifo_write(AVAudioFifo *af, void **data, int nb_samples);
96 
111 int av_audio_fifo_peek(AVAudioFifo *af, void **data, int nb_samples);
112 
128 int av_audio_fifo_peek_at(AVAudioFifo *af, void **data, int nb_samples, int offset);
129 
144 int av_audio_fifo_read(AVAudioFifo *af, void **data, int nb_samples);
145 
155 int av_audio_fifo_drain(AVAudioFifo *af, int nb_samples);
156 
165 
173 
181 
187 #endif /* AVUTIL_AUDIO_FIFO_H */
av_audio_fifo_free
void av_audio_fifo_free(AVAudioFifo *af)
av_audio_fifo_realloc
av_warn_unused_result int av_audio_fifo_realloc(AVAudioFifo *af, int nb_samples)
fifo.h
av_audio_fifo_drain
int av_audio_fifo_drain(AVAudioFifo *af, int nb_samples)
samplefmt.h
av_audio_fifo_write
int av_audio_fifo_write(AVAudioFifo *af, void **data, int nb_samples)
av_audio_fifo_alloc
AVAudioFifo * av_audio_fifo_alloc(enum AVSampleFormat sample_fmt, int channels, int nb_samples)
av_audio_fifo_peek_at
int av_audio_fifo_peek_at(AVAudioFifo *af, void **data, int nb_samples, int offset)
av_audio_fifo_size
int av_audio_fifo_size(AVAudioFifo *af)
av_audio_fifo_read
int av_audio_fifo_read(AVAudioFifo *af, void **data, int nb_samples)
AVSampleFormat
AVSampleFormat
Definition: samplefmt.h:58
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974
avutil.h
offset
GLintptr offset
Definition: SDL_opengl_glext.h:541
AVAudioFifo
struct AVAudioFifo AVAudioFifo
Definition: audio_fifo.h:49
av_audio_fifo_space
int av_audio_fifo_space(AVAudioFifo *af)
av_audio_fifo_reset
void av_audio_fifo_reset(AVAudioFifo *af)
av_audio_fifo_peek
int av_audio_fifo_peek(AVAudioFifo *af, void **data, int nb_samples)