From 836848622f85231c3ff6b9af49704fec4c035df4 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 30 Apr 2013 15:31:00 +0100 Subject: first synced render --- rotord/libavexporter.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rotord/libavexporter.h') diff --git a/rotord/libavexporter.h b/rotord/libavexporter.h index 24b656c..d9d6f38 100644 --- a/rotord/libavexporter.h +++ b/rotord/libavexporter.h @@ -481,8 +481,11 @@ namespace libav { bool record(std::string filename); bool encodeFrame(unsigned char *pixels, uint16_t *samples); bool encodeFrame(unsigned char *pixels,AVPacket *audiopkt); + bool encodeFrame(unsigned char *pixels); + bool encodeFrame(uint16_t *samples); void finishRecord(); - int get_audio_framesize(){return size;}; + int get_audio_framesize(){return audioframesize;}; + float get_audio_step(){return audiostep;}; private: AVOutputFormat *fmt; @@ -491,7 +494,8 @@ namespace libav { AVCodec *audio_codec, *video_codec; double audio_pts, video_pts; - int size; + int audioframesize; + float audiostep; int w; int h; int bitRate; -- cgit v1.2.3