-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+ OmsiSound Completed for @sjain882 #43
Conversation
amathieson
commented
May 21, 2022
- OmsiBoolClass
- Required Structs
+ OmsiBoolClass + Required Structs
OmsiHook/OmsiSound.cs
Outdated
/// </summary> | ||
public int SoundBuffer | ||
{ | ||
get => Memory.ReadMemory<int>(Address + 0xc); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please cast to an IntPtr
OmsiHook/OmsiSound.cs
Outdated
/// </summary> | ||
public int FX_Hall | ||
{ | ||
get => Memory.ReadMemory<int>(Address + 0x10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please cast to an IntPtr
OmsiHook/OmsiSound.cs
Outdated
/// </summary> | ||
public int Int3D | ||
{ | ||
get => Memory.ReadMemory<int>(Address + 0x80); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cast to IntPtr
OmsiHook/OmsiSound.cs
Outdated
/// </summary> | ||
public IntPtr Device | ||
{ | ||
get => (IntPtr)Memory.ReadMemory<int>(Address + 0x8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get => new IntPtr(Memory.ReadMemory<int>(Address + 0x8));