aboutsummaryrefslogtreecommitdiffstats
path: root/src/oma.h
blob: 838322df2c6709c8bad42273a1f2fc2b9fe3d2cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "compressed_io.h"
#include "oma/liboma/include/oma.h"


class TOma : public ICompressedIO {
    OMAFILE* File;
public:
    TOma(const std::string& filename, const std::string& title, int numChannel, uint32_t numFrames, int cid, uint32_t framesize);
    ~TOma();
    std::unique_ptr<TFrame> ReadFrame() override;
    void WriteFrame(std::vector<char> data) override;
    std::string GetName() const override;
    int GetChannelNum() const override;
    long long GetLengthInSamples() const override;
};