Author Topic: Issues with Supersound  (Read 2719 times)

Sudnep

  • Global Moderator
  • Spike Dodger
  • Posts: 124
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 34.0 Firefox 34.0
    • View Profile
  • Playstyle: Keyboard
Issues with Supersound
« on: December 12, 2014, 04:12:05 AM »
Issue Resolved:
Use the supersound.dll in Sephs engine, not the one posted in the gamemaker thread or else you'd have some serious problems.




I'm having a really strange issue and I'm not sure why it's happening. I have ideas as to why it is but I haven't fully tested it yet.
I'm at the very least certain that it is a sound issue. I'm using an edited version of Seph's Engine in which I'm loading all the music at the beginning of the game.
Link to Sephs Engine: https://www.iwannacommunity.com/forum/index.php?topic=921.0
Sound Management Changes on mine:

Sound Load at Start of Game:
(click to show/hide)

musicFunctions - run on Room Start
(click to show/hide)

scrFreeSound() - I attempted using this on on Esc press before game_end();
(click to show/hide)

ESC Game End
(click to show/hide)

Issue: After running the game multiple times eventually sounds on my computer stop playing (outside of streams for some reason) and I have to restart to fix the issue.

Idea: I'm not using SS_FreeSound(sound) at game end and I think this might be causing an issue. I think what's happening it's just pooling and causing this issue but when I tried to remedy this, on game end the game had crashed. I didn't extensively try to fix that problem.

I also took out cleanmem.dll since I wasn't seeing what it was doing and it appeared to have no real effect on the game.

This problem is above me and I can't really figure out why this is happening.

I believe cleanmem.dll might fix the problem and I believe this has something to do with it but I'm not sure.

I heard that SSound has a bug that won't unload sound in windows  7 or more. is this version for fixing that bug?
« Last Edit: December 12, 2014, 05:32:00 PM by Sudnep »

lemonxreaper

  • Administrator
  • Spike Dodger
  • Posts: 222
  • Do you even needle?
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 34.0 Firefox 34.0
    • View Profile
Re: Issues with Supersound
« Reply #1 on: December 12, 2014, 04:39:32 AM »
Is there any particular reason you want to load all the music at the start? because that means every piece of audio will simultaneously take up memory at all times, its something you would normally want to avoid where possible.

Sounds like it might be what is causing the issue as a memory leak, but hard to say, because memory leaks are incredibly unpredictable in gamemaker.
Just pretend I have a cool picture like Zero.
Completed Fangames: https://dl.dropboxusercontent.com/u/4678222/Complete%20Fangames.txt

Sudnep

  • Global Moderator
  • Spike Dodger
  • Posts: 124
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 34.0 Firefox 34.0
    • View Profile
  • Playstyle: Keyboard
Re: Issues with Supersound
« Reply #2 on: December 12, 2014, 05:27:46 AM »
Is there any particular reason you want to load all the music at the start? because that means every piece of audio will simultaneously take up memory at all times, its something you would normally want to avoid where possible.
Yeah, I guess that is a stupid idea to begin with. I guess it doesn't really matter to have everything loaded at the start except for menu sounds / title music. I'll just revert music loading to how it was in Seph's engine.

Any tools I can use to figure out what causes issues such as memory leaks?

Sephalos

  • Spike Dodger
  • Posts: 228
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Chrome 38.0.2125.111 Chrome 38.0.2125.111
    • View Profile
  • Playstyle: Gamepad
Re: Issues with Supersound
« Reply #3 on: December 12, 2014, 08:41:52 AM »
Hmm I'm really not sure, the code I'm seeing seems fine and you say it only happens some of the times after multiple uses. If this is a common bug with windows 7, I might have to start looking for a alternative. I've never loaded wav files into supersound, maybe that could have something to do with it but I'm really don't know.

Are you using the version of my engine that uses the supersound dll or the extention?

Sudnep

  • Global Moderator
  • Spike Dodger
  • Posts: 124
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Firefox 34.0 Firefox 34.0
    • View Profile
  • Playstyle: Keyboard
Re: Issues with Supersound
« Reply #4 on: December 12, 2014, 01:39:44 PM »
Hmm I'm really not sure, the code I'm seeing seems fine and you say it only happens some of the times after multiple uses. If this is a common bug with windows 7, I might have to start looking for a alternative. I've never loaded wav files into supersound, maybe that could have something to do with it but I'm really don't know.

Are you using the version of my engine that uses the supersound dll or the extention?

I'm pretty sure I'm using the dll from the engine but just to make sure I'll re download it again. The thing is I've never had this issue before and am currently using your engine for I wanna be Anime and haven't had an issue like this before. The differences between the two is loaded wav files, removed cleanmem, and music loading at the start of the game

Going to try and run these test through it by running the game over and over:
1) Original set-up to confirm problem still exsits.
2) Redownlaoded dll
3) wav files > ogg files
4) Original Music Handling Set Up