Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TraderTom, Akow), 1,388 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Soundfiles are stopping #349326
12/06/10 13:03
12/06/10 13:03
Joined: Nov 2009
Posts: 201
Logitek Offline OP
Member
Logitek  Offline OP
Member

Joined: Nov 2009
Posts: 201
Hello,

I have a new question about sound files.

I am working with A7.8 Pro.

The game is very big and i got a new problem now.

Soundfiles are stopping in the middle. They donīt play until to the end. But that is not from the beginning. Only if I play the game some time and some level changings.

My question is: Is it possible that sound files are stopping in the middle if the nexus is too small?

I mean: Maybe the soundfiles are loaded into the RAM from the harddisk. And if a new soundfile starts in the same moment the old one will stop, because the other one is loading from the harddisk into the RAM. Could that be possible?

Or are there any other possible reasons?

Thank you for ideas ...

Ps.: I am sure that the code is okay, because it is working also in all the levels before.

Re: Soundfiles are stopping [Re: Logitek] #349335
12/06/10 14:29
12/06/10 14:29
Joined: Nov 2009
Posts: 201
Logitek Offline OP
Member
Logitek  Offline OP
Member

Joined: Nov 2009
Posts: 201
I think I know the problem now.

Too much functions. It is not the nexus.

Re: Soundfiles are stopping [Re: Logitek] #349336
12/06/10 14:50
12/06/10 14:50
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
How many sounds are playing when they stop? (see debug panel)


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Soundfiles are stopping [Re: Superku] #349337
12/06/10 14:51
12/06/10 14:51
Joined: Nov 2009
Posts: 201
Logitek Offline OP
Member
Logitek  Offline OP
Member

Joined: Nov 2009
Posts: 201
About 18. But that is no problem in the levels before.

The problem appears with about 2500 running functions at the same moment. I have to optimize some parts.

Re: Soundfiles are stopping [Re: Logitek] #349626
12/09/10 17:41
12/09/10 17:41
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The number of running functions is unrelated, but the number of playing sounds is not. 18 is probably too much for your hardware. Check your functions and sound ranges to get a lower number of sounds, maybe 8.

Re: Soundfiles are stopping [Re: jcl] #349696
12/10/10 14:18
12/10/10 14:18
Joined: Nov 2009
Posts: 201
Logitek Offline OP
Member
Logitek  Offline OP
Member

Joined: Nov 2009
Posts: 201
Hi JCL,

i know about the hardware limits. This was my first thought.

But I have made more tests and I have no idea what the problem could be.

I can play the game and all soundfiles are playing without any problems.

BUT: If I save the game or start a new game (that is also a saved game from the beginning) then it happens: Some soundfiles are stopping in the middle. And I donīt know why. And I have also seen, that it also happens with only 8 soundfiles at the same time.

Example:
I play the game, everything is fine.
I save the game in level 3 or level 4 as example.
I start a new game or I load a the same saved game from above and it happens.

I thought: Hmmm. Maybe the savegame files are damaged or something like that.

I exit the game. And restart the game. I load the savegame and everything is fine.

So it only happens if I load a game in the same session.
If I exit the game and restart it and load the saved game back then everything is okay.

What do you think? What could be the problem?

I have A7.8 Pro

Re: Soundfiles are stopping [Re: Logitek] #349704
12/10/10 14:52
12/10/10 14:52
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
When a sound stops in the middle, does the number of sounds in the F11 panel also go down? Or does it stay the same?

Re: Soundfiles are stopping [Re: jcl] #349709
12/10/10 15:20
12/10/10 15:20
Joined: Nov 2009
Posts: 201
Logitek Offline OP
Member
Logitek  Offline OP
Member

Joined: Nov 2009
Posts: 201
Good question. I will check it.

Re: Soundfiles are stopping [Re: Logitek] #349725
12/10/10 16:26
12/10/10 16:26
Joined: Nov 2009
Posts: 201
Logitek Offline OP
Member
Logitek  Offline OP
Member

Joined: Nov 2009
Posts: 201
I have checked it and made also more tests.

The number of the sounds seems to going down after stop.

I have made a special test now:

I have saved the game, reloaded it and some sound files are stopping in the middle.

I resaved that game again and the loaded it: And the sound files are again shorter than before.

I resaved also that game and loaded it back and it was again more shorter than the one before.

It is getting shorter and shorter with each game_save and reload.

After some time you only here a part of a second from the sound files.

What do you think?

What could be the reason for that instead of hardware problems? Because it is working without game save and reload in the same game session.

I have never heared that anyone other had that problems with gamestudio.

So I will check the code again.

Re: Soundfiles are stopping [Re: Logitek] #349737
12/10/10 17:20
12/10/10 17:20
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Do you have any snd_stop/tune instructions or the like in your code? What does happen if you remove those functions?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Page 1 of 3 1 2 3

Moderated by  old_bill, Tobias 

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