Skip to content
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

Sound Save/Restore play sound at absolute pos #6

Open
smlu opened this issue Dec 1, 2024 · 0 comments
Open

Sound Save/Restore play sound at absolute pos #6

smlu opened this issue Dec 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@smlu
Copy link
Owner

smlu commented Dec 1, 2024

There is a bug in the Sound_Save or Sound_Restore functions. This bug causes sounds that are played at specific positions (sithSoundMixer_PlaySoundPos or Cog funcfion PlaySoundThing with absolute positions) to incorrectly play near the player's position. This issue occurs when objects (actors) are dynamically created or killed near the player after restoring a game (quick load).

Steps to Reproduce:

  1. Play a sound at a specific position using sithSoundMixer_PlaySoundPos or PlaySoundThing (use gen_soundthing.cog).
  2. Save the game.
  3. Restore the game (quick load).
  4. Create or kill objects near the player's position.
  5. Observe that the sound originally played at a specific position is now playing near the player's position.

Expected Behavior:

Sounds played at specific positions should remain at those positions after a game restore, regardless of dynamic object creation or destruction near the player.

@smlu smlu added the bug Something isn't working label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant