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.

Dark GDK / c:\media? problem with dbLoadSound (dbLoadImage)

Author
Message
Ralvsen
14
Years of Service
User Offline
Joined: 4th Feb 2010
Location:
Posted: 6th Feb 2010 12:01
can somebody please tell me how i change the search behaviour of dbLoadImage or dbLoadsound?

running a processmonitor i can see that the first directory either of these functions look up first is "c:\media"
The interesting is that when i load a .png the search continues to the proper path finding the .png file.

finding a .ogg doesnt work at all. Even if i support a fully expanded path with the filename...

dbLoadImage( "sprite/boom0003.png", 100 );
dbLoadSound( "sound/bongose.ogg", 1 );

boom003.png works, bongose.ogg doesnt

supplying a full qualified path like dbLoadSound( "c:\projects\DrakGDK\test\sound\bongose.ogg" is being treated as "C:\media\c:\projects\DrakGDK\test\sound\bongose.ogg" as far as i can see in the processmonitor...

do i have to set media/datadirs somehow?
Isocadia
15
Years of Service
User Offline
Joined: 24th Jul 2009
Location:
Posted: 7th Feb 2010 09:30
Does GDK support .ogg files? And if not i still think it's better to fully write the path.

Ralvsen
14
Years of Service
User Offline
Joined: 4th Feb 2010
Location:
Posted: 7th Feb 2010 12:04
even if it doesnt supports .ogg why is this so strange?
and a fully qualified path isnt working as i already stated...
Cetobasilius
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location: Mexico
Posted: 14th Feb 2010 00:06
some code would be helpfull, but i think what is wrong. do you have this line somewhere?:

dbSetDir ( "media" );

or something like it?
maybe thats your problem. and i think it doesnt support ogg

hi
Carlos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 14th Feb 2010 06:16
DarkGDK doesn't support ogg.

Login to post a reply

Server time is: 2024-10-02 01:21:30
Your offset time is: 2024-10-02 01:21:30