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.

Newcomers DBPro Corner / Sound problem.

Author
Message
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 21st Mar 2009 02:42
This is the problem, i have done an option to change the sound and music volume, and it works fine.
I reset the game, and the music stays as i putted last time, but the sounds dont, why?

REMEMBER ME, IM YITZU!
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 21st Mar 2009 03:01


Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 21st Mar 2009 03:33
lol, just its classic code, set sound volume 1, ...
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 21st Mar 2009 10:24
You have to display the entire code.
Also, you should be aware that the set sound command operates differently on different machines; it is (almost?) always inaudible well before reaching 0, but on certain machines this will happen around 30, whilst others fail to produce the sound even around a setting of 70.

Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 21st Mar 2009 21:51
mmm, didnt know that, well but the code is just the set sound volume code, just that, the classic code, i cant put the entire code, it would be giant and hard to understand.

Well if someone know about this, plz post.
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 21st Mar 2009 23:08
You usually strip out the relevant part, which probably consists of only a few lines.

Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 22nd Mar 2009 01:17
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 22nd Mar 2009 12:07
Mhm, as I said - are you sure that 30 is in the audible range on your computer?
Try setting it to 80 or something, just to test.

Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 22nd Mar 2009 19:55
but, umm, the problem isnt that
The problem is that when i put that option of set sound volume while in the game, then, when i restart it, it wont stay as the volume i putted the last time, it will sound as 100, not as 30.

For some reason, the music stays as i putted the last time, but the sound doesnt, why?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 22nd Mar 2009 20:05
does the value you use to set the sound level get reset when you restart the loop.

Dark Physics makes any hot drink go cold.
feiting shadow
18
Years of Service
User Offline
Joined: 12th Sep 2006
Location:
Posted: 22nd Mar 2009 21:21
might as well post the whole thing, and put in big letters in the comments `THIS IS THE VOLUME CONTROL FUNCTION AREA

Also note that your volume knob itself, if you double-click it, has multiple settings. Perhaps you are saving the midi area but not the wave file, or vice versa.

Signed
------
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 24th Mar 2009 00:26 Edited at: 24th Mar 2009 00:27
check your Image Saving thread for the solution.

if none of the help you've received works for you, try moving your microphone close, clear your throat, and demand, firmly, "REMEMBER ME, IM YITZU!".
the program will then load/save the settings for you automatically.

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 24th Mar 2009 16:49
The reason why the sound volume keeps on changing back when you start the program is because it won't automatically save settings. You will have to code that yourself, by writing the volumes to a file and loading them whenever the program is run.

<---Spell casting battle game!

Login to post a reply

Server time is: 2024-11-25 10:19:10
Your offset time is: 2024-11-25 10:19:10