Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Playing Sounds Requires SYNC

Author
Message
Mage
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 1st Nov 2010 07:20
I have noticed that you need to use SYNC instead of FASTSYNC when using sounds in DBPro.


Problem:
When my game starts, sounds (like gunshots and footsteps) appear very quiet. Also I recently added additional sounds to the game and now some other sounds only play once or not at all.

I have triple checked to make sure Sounds have been properly setup, listeners are in place, and that I'm not doing ANYTHING, to interrupt proper behavior. No overwrites or conflicts.


Observation:
When I go into a Game Inventory Menu (which doesn't do anything with sounds) then return, all previously loaded sounds appear much louder (proper volume).

I setup a sound management system, for things like when people get shot they don't talk over themselves with multiple grunts and screams. Also for Handling too many sounds, and loading etc. Glitched sounds that stop playing have "Sounds Playing()" = 1 even when sound finished.


The Solution:
http://forum.thegamecreators.com/?m=forum_view&t=155084&b=1

Parts of the internal Sound System for DBPro seem to screw up if you aren't using Sync.

I was using fastsync because a couple cameras are feeding shaders. I switched to SYNC for Camera 0. Instantly the problem was gone.

Switching to a Game Inventory Menu made the already loaded sounds louder because there's an animated preview of the player that uses SYNC.

The Help Files don't mention that SYNC is needed.

Login to post a reply

Server time is: 2024-05-19 10:59:56
Your offset time is: 2024-05-19 10:59:56