Bell catchup

This commit is contained in:
philippe44
2023-07-26 13:19:20 -07:00
parent 859efdb954
commit 232afb948b
467 changed files with 77538 additions and 37137 deletions

View File

@@ -12,10 +12,12 @@ namespace bell {
class MP3Container : public AudioContainer {
public:
~MP3Container(){};
MP3Container(std::istream& istr);
MP3Container(std::istream& istr, const std::byte* headingBytes = nullptr);
std::byte* readSample(uint32_t& len) override;
void parseSetupData() override;
void consumeBytes(uint32_t len) override;
bell::AudioCodec getCodec() override { return bell::AudioCodec::MP3; }
private:
@@ -26,6 +28,7 @@ class MP3Container : public AudioContainer {
size_t bytesInBuffer = 0;
size_t dataOffset = 0;
size_t toConsume = 0;
bool fillBuffer();
};