diff options
author | bbergeron <[email protected]> | 2024-04-03 17:32:01 -0400 |
---|---|---|
committer | bbergeron <[email protected]> | 2024-04-03 17:32:01 -0400 |
commit | c1cb78d574c0429aa5e3ff3a2b3886e4bc153212 (patch) | |
tree | bf68806bcbddcafafc015b28c25550ea457eeecc /audio/stream.h |
Reset Git repo and use a pseudonym to sign commits
I used to sign my commits with my real name and my personal email
address, which I wanted scrubbed off the "B." pseudosphere. Re-creating
a new git repository was safer than simpler than re-writing the
history (although the latter could've also worked but, oh well).
Diffstat (limited to 'audio/stream.h')
-rw-r--r-- | audio/stream.h | 14 |
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 |