summaryrefslogtreecommitdiff
path: root/audio/stream.h
blob: 94c51626ee08c78ace56939d7cb8194ebc743aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef AUDIO_STREAM_H
#define AUDIO_STREAM_H

#include <libavformat/avformat.h>

struct Stream {
	AVFormatContext *s;
	AVStream        *av_stream;
};

int  stream_init (struct Stream *stream, AVFormatContext *s, int codec_id, int sample_rate, int format, const AVChannelLayout *layout,  AVDictionary **opts);
int  stream_send (struct Stream *stream, AVPacket *pkt);

#endif // AUDIO_STREAM_H