mirror of
https://github.com/zeldaret/ss
synced 2026-08-01 08:17:21 -04:00
start matching some d/snd things
This commit is contained in:
@@ -31,10 +31,10 @@ AnmMdlWrapper::AnmMdlWrapper() : mpSoundSource(nullptr), mpSoundData(nullptr) {}
|
||||
|
||||
AnmMdlWrapper::~AnmMdlWrapper() {
|
||||
if (mpSoundSource != nullptr) {
|
||||
if (mpSoundSource->shutdown()) {
|
||||
if (mpSoundSource->hasPlayingSounds()) {
|
||||
do {
|
||||
VIWaitForRetrace();
|
||||
} while (mpSoundSource->shutdown());
|
||||
} while (mpSoundSource->hasPlayingSounds());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -119,7 +119,7 @@ void AnmMdlWrapper::setRate(f32 rate) {
|
||||
setSoundRate(rate);
|
||||
}
|
||||
|
||||
void AnmMdlWrapper::setSoundSource(SoundSource *pSource) {
|
||||
void AnmMdlWrapper::setSoundSource(dSoundSourceIf_c *pSource) {
|
||||
mpSoundSource = pSource;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "d/a/d_a_base.h"
|
||||
|
||||
extern "C" SoundSource *soundForActorInitRelated_803889c0(int, fBase_c *, char *, u8);
|
||||
extern "C" dSoundSourceIf_c *soundForActorInitRelated_803889c0(int, fBase_c *, char *, u8);
|
||||
|
||||
extern "C" bool fn_8002C250(SoundInfo *p1, int someNum, char *name, mVec3_c *position) {
|
||||
p1->sound_source = soundForActorInitRelated_803889c0(someNum, p1->actor, name, 0);
|
||||
|
||||
Reference in New Issue
Block a user