Etterna 0.74.4
Loading...
Searching...
No Matches
RageSoundPosMap.h
1/* pos_map_queue - A container that maps one set of frame numbers to another. */
2
3#ifndef RAGE_SOUND_POS_MAP_H
4#define RAGE_SOUND_POS_MAP_H
5
6struct pos_map_impl;
8{
9 public:
12 pos_map_queue(const pos_map_queue& cpy);
13 auto operator=(const pos_map_queue& rhs) -> pos_map_queue&;
14
15 /* Insert a mapping from iSourceFrame to iDestFrame, containing iFrames. */
16 void Insert(int64_t iSourceFrame,
17 int iFrames,
18 int64_t iDestFrame,
19 float fSourceToDestRatio = 1.0F);
20
21 /* Return the iDestFrame for the given iSourceFrame. */
22 auto Search(int64_t iSourceFrame, bool* bApproximate) const -> int64_t;
23
24 /* Erase all mappings. */
25 void Clear();
26
27 [[nodiscard]] auto IsEmpty() const -> bool;
28
29 private:
30 pos_map_impl* m_pImpl;
31};
32
33#endif
Definition RageSoundPosMap.h:8
Definition RageSoundPosMap.cpp:31