Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 7,008 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
play_soundfile and resource problem? #6437
08/06/01 16:17
08/06/01 16:17

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I used play_soundfile function in my code, and everyting was OK until i made 'resource'. When I start the game by the exe file sounds files are not played. (I copied them to the resorce dir.) Everything is OK when I 'publish' or run the game from Wed. Where's the problem?

Greetings
AL


Re: play_soundfile and resource problem? #6438
08/08/01 23:01
08/08/01 23:01

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Just a thought - have you checked that your file path is still okay - I would have thought that something in the path may have changed when you copied it. (note that this function requires the use of an external file as compared with using angular brackets, try using a relative dos path e.g ".//Sounds//my_sound.wav").

p.s.
I just tried this suggestion, but it does not work! Despite this, it gives no errors (i.e sound file is found but nothing plays).

Ed


Re: play_soundfile and resource problem? #6439
08/09/01 15:01
08/09/01 15:01

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I tried all that but it didn't work. The path is set, and relative dos path is not good becasue it gives back a message that the file name is too long.
Thanks anyway...

Greetings
AL


Re: play_soundfile and resource problem? #6440
08/10/01 18:07
08/10/01 18:07

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Although it may not help, you can overcome the DOS path problem by using the 'dot' to navigate from the current directory. e.g ".//Sounds//my_sound.wav". A double dot will take you up one level e.g "..//Work//Sounds//my_sound.wav"

From your reply it appears you may have set up a special project directory. Have you tried moving your files to the "Work" directory and rebuilding? The soundfile code seems a bit picky in its path definitions.

Ed


Re: play_soundfile and resource problem? #6441
08/19/01 17:33
08/19/01 17:33

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Just reread your note. Try using

BIND ".\..\SOUNDS\my_sound.wav";

or, whatever is appropriate for your DOS path/filenames.

That should solve your problem.

Ed


Re: play_soundfile and resource problem? #6442
08/20/01 15:24
08/20/01 15:24

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



quote:
Originally posted by EdP:
Just reread your note. Try using

BIND ".\..\SOUNDS\my_sound.wav";
or, whatever is appropriate for your DOS path/filenames.

Ed


Well, I suppose that BIND will include wav
files into the resource file anyway. And that's what i wanted to avoid... As I was said by Conitec's support currently it is not possible to load WAV files outside of the resource file.
This will be changed in one of the next free A5 updates.
Thanks everybody for help

Greetings
AL



Moderated by  HeelX, Spirit 

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