mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 22:17:17 +03:00
move to new cspot
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <istream>
|
||||
#include <cstring>
|
||||
#include "CodecType.h"
|
||||
#include "StreamInfo.h"
|
||||
|
||||
namespace bell {
|
||||
class AudioContainer {
|
||||
protected:
|
||||
std::istream& istr;
|
||||
uint32_t toConsume = 0;
|
||||
|
||||
public:
|
||||
bell::SampleRate sampleRate;
|
||||
bell::BitWidth bitWidth;
|
||||
int channels;
|
||||
|
||||
AudioContainer(std::istream& istr) : istr(istr) {}
|
||||
|
||||
virtual std::byte* readSample(uint32_t& len) = 0;
|
||||
void consumeBytes(uint32_t bytes) { this->toConsume = bytes; }
|
||||
virtual void parseSetupData() = 0;
|
||||
virtual bell::AudioCodec getCodec() = 0;
|
||||
};
|
||||
} // namespace bell
|
||||
Reference in New Issue
Block a user