Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (Martin_HH, steyr, alibaba), 509 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
wav and ogg files, very bad sound. #233466
10/28/08 23:39
10/28/08 23:39
Joined: Aug 2008
Posts: 408
mi usa
sadsack Offline OP
Senior Member
sadsack  Offline OP
Senior Member

Joined: Aug 2008
Posts: 408
mi usa
Hello,
I have yet to use sound in 3DGS untill now. Yes, you are right, I am haveing some problems. When the sound file (both wav and ogg) are played they are so bad you can't make out what is being played. I may not be doing it right. Here is the code I am using.
CODE:
Code:
SOUND* landing_snd = "call_1.wav"; 
//Then in the while loop I have this

if(total_secs ==10){snd_play(landing_snd,50,0);}



Now is that the right way of doing or is there a better way?
Thank You
renny


I have A7 Commercial .............. Now I just need to learn how to use it

Re: wav and ogg files, very bad sound. [Re: sadsack] #233479
10/29/08 02:26
10/29/08 02:26
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Your code is totall ok. Although it makes no sense to use the if expression inside a while loop. total_secs == 10 is even dangerous, cause it is not guaranteed, that you'll get the exact moment when total_secs has the value of 10. Better use a simple approach like
Code:
wait(-10)
snd_play(landing_snd,100,0);


However if the sound is played that is not the matter. You should ensure that you have:
* a clean installation of your sound driver and directx.
* set the appopriate volume on your soundcard and on your speakers.
* a sound file with good quality. 22.000 hz at 16 bit should be ok for wav files.

Try playing the soundfile with windows media player (or any other preferred player like winamp etc.) Does the sound sound better? If so you have for sure a driver or directx problem. Don't bother about your code. It is ok. Is the sound better when you play it with media_play instead of snd_play? If so you can be sure to have a direct sound problem. You can try to click "start", "run" and type "dxdiag.exe". Hit enter. In the upcoming window change to the sound tab and move the slider for hardware acceleration to the left. Does that help?


Always learn from history, to be sure you make the same mistakes again...
Re: wav and ogg files, very bad sound. [Re: Uhrwerk] #233547
10/29/08 13:31
10/29/08 13:31
Joined: Aug 2008
Posts: 408
mi usa
sadsack Offline OP
Senior Member
sadsack  Offline OP
Senior Member

Joined: Aug 2008
Posts: 408
mi usa
Thanks Uhrwerk,
yes I have tryed all of the above. still no luck. In the manual it talks about a filter for the sound sys.
renny


I have A7 Commercial .............. Now I just need to learn how to use it

Re: wav and ogg files, very bad sound. [Re: sadsack] #233647
10/29/08 18:42
10/29/08 18:42
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Is the problem occuring with all sound files you try or just with a certain one?


Always learn from history, to be sure you make the same mistakes again...
Re: wav and ogg files, very bad sound. [Re: Uhrwerk] #233650
10/29/08 18:52
10/29/08 18:52
Joined: Aug 2008
Posts: 408
mi usa
sadsack Offline OP
Senior Member
sadsack  Offline OP
Senior Member

Joined: Aug 2008
Posts: 408
mi usa
I have a few test I want to make, I will get back to you.
renny


I have A7 Commercial .............. Now I just need to learn how to use it


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1