mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-25 06:56:15 +02:00
26 lines
524 B
C++
26 lines
524 B
C++
#ifndef FLAC_ENCODER_H
|
|
#define FLAC_ENCODER_H
|
|
#include "encoder.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "FLAC/metadata.h"
|
|
#include "FLAC/stream_encoder.h"
|
|
|
|
|
|
class FlacEncoder : public Encoder
|
|
{
|
|
public:
|
|
FlacEncoder(const msg::SampleFormat& format);
|
|
virtual double encode(msg::PcmChunk* chunk);
|
|
|
|
protected:
|
|
void initEncoder();
|
|
// virtual void progress_callback(FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate);
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
|