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
8namespace nw { namespace snd { namespace internal {
9
10class Util
11{
12public:
13 static NW_INLINE ItemType GetItemType(u32 id)
14 {
15 return static_cast<ItemType>(id >> 24);
16 }
17
19 {
20 return id & 0x00ffffff;
21 }
22
24 {
25 return id | (static_cast<u32>(type) << 24);
26 }
27};
28
29} } } // namespace nw::snd::internal
30
31#endif // NW_SND_UTIL_H_
Definition snd_Util.h:11
Definition snd_BasicSound.cpp:3
Definition snd_BasicSound.cpp:3