-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtils.hpp
More file actions
35 lines (27 loc) · 1.13 KB
/
Utils.hpp
File metadata and controls
35 lines (27 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//================ include/IndexLib/Utils.hpp =================================
#ifndef INDEXLIB_UTILS_HPP
#define INDEXLIB_UTILS_HPP
#include <string>
#include <vector>
#include "IndexTypes.hpp"
namespace IndexLib
{
//! Извлечь метаданные файла.
int extractFileMeta(const std::string &path,
uint32_t &size,
uint32_t &duration,
uint8_t &type,
std::string &codec);
//! Распарсить дату и номер канала из имени файла.
bool parseAudFromFilename(const std::string &filename,
uint8_t &ch,
uint16_t &yy,
uint8_t &MM,
uint8_t &dd,
uint8_t &hh,
uint8_t &mm,
uint8_t &ss);
//! Получить текущее время в мс от запуска.
uint32_t tickMs();
} // namespace IndexLib
#endif // INDEXLIB_UTILS_HPP