Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (3run, 1 invisible), 3,648 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Bug in ent_playloop? #255059
03/07/09 11:15
03/07/09 11:15
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi,

maybe there's a bug in ent_playloop (A7.70).

If I use ent_playloop with a low volume or even 0 I can't get the sound to be heard if I raise the volume by using snd_tune.

If I use ent_playloop with a high volume, then set the volume to -1 with snd_tune and later raise the volume again everything works fine.

Regards,
Pegamode.

Re: Bug in ent_playloop? [Re: pegamode] #255254
03/09/09 08:19
03/09/09 08:19
Joined: Jul 2000
Posts: 28,094
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,094
Frankfurt
I can not confirm this problem here. For ent_playsound, the sound is out of range of the camera when the volume is too low, and thus then is indeed not played. But this does not happen with ent_playloop.

Maybe too many entity sounds are playing at the same time? In that case, the least audible sound is stopped.

Re: Bug in ent_playloop? [Re: pegamode] #255260
03/09/09 08:31
03/09/09 08:31

M
mercuryus
Unregistered
mercuryus
Unregistered
M



Maybe it's related to this:

Code:
/////////////////////
#include <acknex.h>
#include <default.c>
/////////////////////

SOUND*	snd_test = "LoopyMusic.wav";

void main(){
var lv_shdl;
var lv_vol = 0;
	
	// doesn't work
	//lv_shdl=snd_loop(snd_test, 0, 0);
	//lv_shdl=snd_loop(snd_test, 1, 0);
	
	// work
	lv_shdl=snd_loop(snd_test, 2, 0);
	
	// fade in
	lv_vol=0;
	while(lv_vol<100 && lv_shdl!=0){
		snd_tune(lv_shdl, lv_vol, 0, 0);
		lv_vol=minv(lv_vol+time_step*.5, 100);
		wait(1);
	}
	
}


Re: Bug in ent_playloop? [Re: ] #255265
03/09/09 08:44
03/09/09 08:44
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
There was only 1 sound playing at the same time.

The debug-screen (F11) showed 1 sound playing.

The code mercuryus posted is quite similiar to mine.
Both snd_loop and ent_playloop don't work if the volume is very low when increasing the volume with snd_tune.

Regards,
Pegamode.

Re: Bug in ent_playloop? [Re: pegamode] #255267
03/09/09 08:55
03/09/09 08:55

M
mercuryus
Unregistered
mercuryus
Unregistered
M



PS: no handle is returned (created) when playing a "silent" sound...

Re: Bug in ent_playloop? [Re: ] #255399
03/10/09 08:13
03/10/09 08:13
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi JCL,

any further ideas according this problem?

There's only one sound playing ... so the limit isn't reached.
I get a handle for this sound and the command snd_playing shows
that the sound is playing, but it can't be heard.

It's not possible to change the volume with snd_tune.

Regards,
Pegamode.

Re: Bug in ent_playloop? [Re: pegamode] #255402
03/10/09 08:26
03/10/09 08:26
Joined: Jul 2000
Posts: 28,094
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,094
Frankfurt
I will look into it. When a handle is returned, the sound is playing and should be tune-able. But maybe there's something wrong with silent sounds, dependent on the audio card or audio driver. I have only tested it on my PC, but will test it on many other machines in the next days, and post the results here.

Re: Bug in ent_playloop? [Re: jcl] #260147
04/09/09 06:24
04/09/09 06:24
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Any new information to this issue?

Regards,
Pegamode.

Re: Bug in ent_playloop? [Re: pegamode] #260152
04/09/09 06:35
04/09/09 06:35
Joined: Jul 2000
Posts: 28,094
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,094
Frankfurt
Yes, we had indeed found a problem that theoretically could, depending on the sound card, lead to not being able to tune the sound. However, this should normally only affect ent_playsound, not ent_playloop. We could not reproduce the problem here with any of the sound functions, but have changed this anyway in the current version. Do you still have the problem in the current version?

Re: Bug in ent_playloop? [Re: jcl] #260167
04/09/09 08:51
04/09/09 08:51
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Currently I'm using a workaround, but I'll do a retest asap.


Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | 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