forked from nu774/MSResampler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchapters.h
More file actions
22 lines (18 loc) · 688 Bytes
/
Copy pathchapters.h
File metadata and controls
22 lines (18 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef CHAPTERS_H
#define CHAPTERS_H
#include <string>
#include <vector>
#include <stdint.h>
namespace chapters {
/* chapter name, duration (in second) */
typedef std::pair<std::wstring, double> entry_t;
/* chapter name, absolute position (in second) */
typedef std::pair<std::wstring, double> abs_entry_t;
void load_from_file(const std::wstring &path,
std::vector<abs_entry_t> *chapters,
uint32_t codepage=0);
void abs_to_duration(const std::vector<abs_entry_t> abs_ents,
std::vector<entry_t> *dur_ents,
double total_duration);
};
#endif