mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-17 23:20:19 +01:00
16 lines
344 B
C++
16 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);
|
|
}
|