aboutsummaryrefslogtreecommitdiff
path: root/src/recorder.h
blob: 591312ecb219622103e002f66e40670a0ab5d3a6 (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
#ifndef __RECORDER_H
#define __RECORDER_H

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

#include "osc_graphics.h"

class Recorder : Mutex {
	SDL_ffmpegFile *file;

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

	void register_methods();

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

	void record(SDL_Surface *surf);
};

#endif