diff options
Diffstat (limited to 'rotord/libavexporter.h')
| -rw-r--r-- | rotord/libavexporter.h | 8 |
1 files changed, 6 insertions, 2 deletions
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; |
