1
0

OFL.h 446 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "LAMEInfo.h"
  3. #include <bfc/platform/types.h>
  4. class OFL
  5. {
  6. public:
  7. int Read(const MPEGFrame &header, const uint8_t *buffer, size_t buffer_len);
  8. double GetLengthSeconds() const;
  9. uint64_t GetSamples() const;
  10. uint32_t GetFrames() const;
  11. int GetGaps(size_t *pregap, size_t *postgap);
  12. private:
  13. int samples_per_frame;
  14. uint32_t total_length;
  15. uint16_t codec_delay;
  16. uint16_t additional_delay;
  17. unsigned int sample_rate;
  18. };