Skip to content

Commit

Permalink
Add BSSoundHandle::Pause
Browse files Browse the repository at this point in the history
  • Loading branch information
W-Drew authored and jpstewart committed Mar 24, 2024
1 parent 2f31b6a commit c6601f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/RE/B/BSSoundHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace RE
bool SetVolume(float a_volume);
bool Stop();
bool Play();
bool Pause();

// members
std::uint32_t soundID; // 00
Expand Down
1 change: 1 addition & 0 deletions include/RE/Offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ namespace RE::Offset
constexpr auto Play = RELOCATION_ID(66355, 67616);
constexpr auto SetObjectToFollow = RELOCATION_ID(66375, 67636);
constexpr auto SetPosition = RELOCATION_ID(66370, 67631);
constexpr auto Pause = RELOCATION_ID(66357, 67618);
constexpr auto Stop = RELOCATION_ID(66358, 67619);
}

Expand Down
7 changes: 7 additions & 0 deletions src/RE/B/BSSoundHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,11 @@ namespace RE
REL::Relocation<func_t> func{ Offset::BSSoundHandle::Play };
return func(this);
}

bool BSSoundHandle::Pause()
{
using func_t = decltype(&BSSoundHandle::Pause);
REL::Relocation<func_t> func{ Offset::BSSoundHandle::Pause };
return func(this);
}
}

0 comments on commit c6601f9

Please sign in to comment.