mirror of
https://github.com/iAmInActions/SpaceCadetPinballPPC.git
synced 2024-11-22 03:55:21 +00:00
17 lines
344 B
C++
17 lines
344 B
C++
#include "pch.h"
|
|
#include "TSound.h"
|
|
|
|
#include "loader.h"
|
|
|
|
TSound::TSound(TPinballTable* table, int groupIndex) : TPinballComponent(table, groupIndex, true)
|
|
{
|
|
visualStruct visual{};
|
|
loader::query_visual(groupIndex, 0, &visual);
|
|
this->SoundIndex = visual.SoundIndex4;
|
|
}
|
|
|
|
float TSound::Play()
|
|
{
|
|
return loader::play_sound(this->SoundIndex);
|
|
}
|