Wwise Audio Tools  0.5.2
Tools for working with Wwise file types
bnk.hpp
Go to the documentation of this file.
1 
11 #ifndef WWTOOLS_BNK_HPP
12 #define WWTOOLS_BNK_HPP
13 
14 #include <string>
15 #include <vector>
16 
17 #include "kaitai/kaitaistream.h"
18 #include "kaitai/structs/bnk.h"
19 
25 namespace wwtools::bnk {
32 void extract(const std::string &indata, std::vector<std::string> &outdata);
33 
40 std::string get_info(const std::string &indata);
41 
49 std::string get_event_id_info(const std::string &indata,
50  const std::string &in_event_id);
51 
59 std::string get_wem_id_at_index(const std::string &indata, const int &index);
60 
61 std::string get_event_name_from_id(const std::uint32_t &event_id);
62 
68 std::string get_event_action_type(bnk_t::action_type_t action_type);
69 } // namespace wwtools::bnk
70 
71 #endif // WWTOOLS_BNK_HPP
contains helper functions for Wwise Soundbank files
std::string get_event_id_info(const std::string &indata, const std::string &in_event_id)
get WEMs correlating to a BNK and an optional event ID
Definition: bnk.cpp:81
std::string get_wem_id_at_index(const std::string &indata, const int &index)
get the ID of a WEM at an index
Definition: bnk.cpp:228
std::string get_event_action_type(bnk_t::action_type_t action_type)
get a string with the action type from the enum
Definition: bnk.cpp:249
std::string get_info(const std::string &indata)
get the info string
Definition: bnk.cpp:45
void extract(const std::string &indata, std::vector< std::string > &outdata)
Extract BNK to array of WEMS.
Definition: bnk.cpp:22