/*1* This file is part of FFmpeg.2*3* FFmpeg is free software; you can redistribute it and/or4* modify it under the terms of the GNU Lesser General Public5* License as published by the Free Software Foundation; either6* version 2.1 of the License, or (at your option) any later version.7*8* FFmpeg is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU11* Lesser General Public License for more details.12*13* You should have received a copy of the GNU Lesser General Public14* License along with FFmpeg; if not, write to the Free Software15* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA16*/1718#ifndef AVDEVICE_OSS_H19#define AVDEVICE_OSS_H2021#include "libavcodec/avcodec.h"2223#include "libavformat/avformat.h"2425#define OSS_AUDIO_BLOCK_SIZE 40962627typedef struct OSSAudioData {28AVClass *class;29int fd;30int sample_rate;31int channels;32int frame_size; /* in bytes ! */33enum AVCodecID codec_id;34unsigned int flip_left : 1;35uint8_t buffer[OSS_AUDIO_BLOCK_SIZE];36int buffer_ptr;37} OSSAudioData;3839int ff_oss_audio_open(AVFormatContext *s1, int is_output,40const char *audio_device);4142int ff_oss_audio_close(OSSAudioData *s);4344#endif /* AVDEVICE_OSS_H */454647