Etterna
0.74.4
Loading...
Searching...
No Matches
src
RageUtil
Sound
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
6
struct
pos_map_impl
;
7
class
pos_map_queue
8
{
9
public
:
10
pos_map_queue
();
11
~pos_map_queue
();
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
pos_map_queue
Definition
RageSoundPosMap.h:8
pos_map_impl
Definition
RageSoundPosMap.cpp:31
Generated by
1.9.8