summaryrefslogtreecommitdiff
path: root/audio/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/stream.h')
-rw-r--r--audio/stream.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/audio/stream.h b/audio/stream.h
new file mode 100644
index 0000000..94c5162
--- /dev/null
+++ b/audio/stream.h
@@ -0,0 +1,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