NW4F Snd
Loading...
Searching...
No Matches
snd_Util.h
Go to the documentation of this file.
1
#
ifndef
NW_SND_UTIL_H_
2
#
define
NW_SND_UTIL_H_
3
4
#
include
<
nw
/
types
.
h
>
5
6
#
include
<
nw
/
snd
/
snd_ItemType
.
h
>
7
8
namespace
nw
{
namespace
snd
{
namespace
internal
{
9
10
class
Util
11
{
12
public
:
13
static
NW_INLINE ItemType
GetItemType
(
u32
id
)
14
{
15
return
static_cast
<
ItemType
>(
id
>> 24);
16
}
17
18
static
NW_INLINE
u32
GetItemIndex
(
u32
id
)
19
{
20
return
id
& 0x00ffffff;
21
}
22
23
static
NW_INLINE
u32
GetMaskedItemId
(
u32
id
,
internal
::
ItemType
type
)
24
{
25
return
id
| (
static_cast
<
u32
>(
type
) << 24);
26
}
27
};
28
29
} } }
// namespace nw::snd::internal
30
31
#
endif
// NW_SND_UTIL_H_
nw::snd::internal::Util
Definition
snd_Util.h:11
nw::snd::internal
Definition
snd_BasicSound.cpp:3
nw::snd
Definition
snd_BasicSound.cpp:3
nw
include
nw
snd
snd_Util.h
Generated by
1.14.0