mirror of
https://github.com/zeldaret/ss
synced 2026-06-07 20:01:37 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
36 lines
637 B
C++
36 lines
637 B
C++
#ifndef NW4R_SND_BANK_H
|
|
#define NW4R_SND_BANK_H
|
|
#include "nw4r/snd/snd_BankFile.h"
|
|
#include "nw4r/snd/snd_NoteOnCallback.h"
|
|
#include "nw4r/types_nw4r.h"
|
|
|
|
|
|
namespace nw4r {
|
|
namespace snd {
|
|
namespace detail {
|
|
|
|
// Forward declarations
|
|
class Channel;
|
|
|
|
class Bank {
|
|
public:
|
|
explicit Bank(const void *pBankBin);
|
|
~Bank();
|
|
|
|
Channel *NoteOn(const NoteOnInfo &rInfo) const;
|
|
|
|
void SetWaveDataAddress(const void *pData) {
|
|
mWaveDataAddress = pData;
|
|
}
|
|
|
|
private:
|
|
BankFileReader mBankReader; // at 0x0
|
|
const void *mWaveDataAddress; // at 0xC
|
|
};
|
|
|
|
} // namespace detail
|
|
} // namespace snd
|
|
} // namespace nw4r
|
|
|
|
#endif
|