opusfileparser.hpp 646 B

1234567891011121314151617181920212223
  1. /**
  2. * libdatachannel streamer example
  3. * Copyright (c) 2020 Filip Klembara (in2core)
  4. *
  5. * This Source Code Form is subject to the terms of the Mozilla Public
  6. * License, v. 2.0. If a copy of the MPL was not distributed with this
  7. * file, You can obtain one at https://mozilla.org/MPL/2.0/.
  8. */
  9. #ifndef opusfileparser_hpp
  10. #define opusfileparser_hpp
  11. #include "fileparser.hpp"
  12. class OPUSFileParser: public FileParser {
  13. static const uint32_t defaultSamplesPerSecond = 50;
  14. public:
  15. OPUSFileParser(std::string directory, bool loop, uint32_t samplesPerSecond = OPUSFileParser::defaultSamplesPerSecond);
  16. };
  17. #endif /* opusfileparser_hpp */