[WASAPI] fix stream types and frequencies enumeration
[xbmc.git] / xbmc / guilib / XBTFReader.h
blobcfe9976f53dce26713477e142112f0801c2f159f
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "XBTF.h"
13 #include <memory>
14 #include <stdint.h>
15 #include <string>
16 #include <vector>
18 class CXBTFReader : public CXBTFBase
20 public:
21 CXBTFReader();
22 ~CXBTFReader() override;
24 bool Open(const std::string& path);
25 bool IsOpen() const;
26 void Close();
28 time_t GetLastModificationTimestamp() const;
30 bool Load(const CXBTFFrame& frame, unsigned char* buffer) const;
32 private:
33 std::string m_path;
34 FILE* m_file = nullptr;
37 typedef std::shared_ptr<CXBTFReader> CXBTFReaderPtr;