Support SFX
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "../Auxiliary/bits.hpp"
|
||||
#include "../GPU/gpu_types.hpp"
|
||||
#include "../jabyengine_defines.hpp"
|
||||
#include "../SPU/spu.hpp"
|
||||
|
||||
namespace JabyEngine {
|
||||
#pragma pack(push, 1)
|
||||
@@ -68,10 +69,11 @@ namespace JabyEngine {
|
||||
};
|
||||
|
||||
struct VAG {
|
||||
uint8_t voice_number;
|
||||
uint8_t voice_number;
|
||||
SPU::SimpleVolume inital_stereo_vol;
|
||||
|
||||
static constexpr VAG create(uint8_t voice_num) {
|
||||
return VAG{.voice_number = voice_num};
|
||||
static constexpr VAG create(uint8_t voice_num, SPU::SimpleVolume volume) {
|
||||
return VAG{.voice_number = voice_num, .inital_stereo_vol = volume};
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user