summaryrefslogtreecommitdiff
path: root/encoders/lame_encoder.h
blob: 79bc944d4e164453358a9e858b8efec8f7354594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef LAME_ENCODER_H
#define LAME_ENCODER_H

#include "encoder.h"

#include <lame/lame.h>
// needed for uint8_t
#include <boost/cstdint.hpp>

class EncoderLame : public Encoder {
	private:
		lame_global_flags *gfp;
		RawAudioSource::p source;
	
	public:
		EncoderLame(RawAudioSource::p source_);
		~EncoderLame();
		
		virtual std::size_t read(char* buf, std::size_t buf_size);
};

#endif