summaryrefslogtreecommitdiff
path: root/libs/audiographer/audiographer/sndfile/tmp_file.h
blob: d6bc5546a595d317ffc6e9db52681ed2af63e0e0 (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
26
27
28
29
30
#ifndef AUDIOGRAPHER_TMP_FILE_H
#define AUDIOGRAPHER_TMP_FILE_H

#include <cstdio>
#include <string>

#include <glib.h>
#include "pbd/gstdio_compat.h"

#include "sndfile_writer.h"
#include "sndfile_reader.h"

namespace AudioGrapher
{

/// A temporary file deleted after this class is destructed
template<typename T = DefaultSampleType>
class TmpFile
	: public SndfileWriter<T>
	, public SndfileReader<T>
{
  public:
	virtual ~TmpFile () {}
	PBD::Signal0<void> FileFlushed;

};

} // namespace

#endif // AUDIOGRAPHER_TMP_FILE_H