2020-11-01 16:45:29 +01:00
|
|
|
#include "pch.h"
|
|
|
|
#include "TSound.h"
|
2021-01-01 14:14:11 +01:00
|
|
|
|
|
|
|
#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);
|
|
|
|
}
|