aboutsummaryrefslogtreecommitdiff
path: root/src/recorder.h
blob: 62458adb0a10392a5a8cefb074b21f98a9f7ec55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __RECORDER_H
#define __RECORDER_H

#include <SDL.h>
#include <SDL/SDL_ffmpeg.h>

#include "osc_graphics.h"

class Recorder : Mutex {
	SDL_ffmpegFile *file;
	Uint32 start_time;

public:
	Recorder() : Mutex(), file(NULL) {}
	~Recorder();

	void register_methods();

	void start(const char *filename);
	void stop();

	void record(SDL_Surface *surf);
};

#endif