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.

Newcomers DBPro Corner / My music wont load?

Author
Message
Marsekay
16
Years of Service
User Offline
Joined: 24th May 2008
Location:
Posted: 25th May 2008 03:00
Hi all im currently having a mess around with DBpro trial but i cant get the music command to work.

im sure i am using it right,its in mp3 format and the music file is located in the project folder btw.

it gives me the error message runtime error 3502 cannot load from line 6

REM Project: music tester
REM Created: 25/05/2008 00:45:50
REM
REM ***** Main Source File *****
REM
load music "music.mp3",1
play music 1
print "playing music 1. press a key to end"
wait key

Is this an issue with it being a trial version?

Marse
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th May 2008 09:28
Load Music is intended for MIDI (.MID) music files. MP3's, are effectively compressed and renamed .WAV files so use Load Sound instead.

TDK_Man

nackidno
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Där solen aldrig skiner
Posted: 25th May 2008 13:34
Make sure that the music file is in the same directory as the project, otherwise you have to specify the path.

- Elias, Damezean, Nackidno, Wonderboy

AntocGames - http://antocgames.se.nu/
Marsekay
16
Years of Service
User Offline
Joined: 24th May 2008
Location:
Posted: 25th May 2008 17:21
Ok i dunno whats goin gon,

i got it to work, only by renaming the file(removed the extension part)

renamed from music.mp3 to music
changed the code to suit and it now works. does it dislike extensions being part of the filename?

later on it decided to give up again i had to quit out and reload the program where it decided to work.

very strange indeed!

Marse
Marsekay
16
Years of Service
User Offline
Joined: 24th May 2008
Location:
Posted: 25th May 2008 17:25
Ok i got it to work by removing the extension part of the filename (renamed file and also changed code to suit renaming)
this got it working although theres no reason why it should be any differnt? does DBP not like extensions as part of file names?

also after a few plays it decided to give up again, same error etc, quitting out and restarting seemed to fix it. although this seems very strange indeed.....

Marse
nackidno
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Där solen aldrig skiner
Posted: 25th May 2008 17:35
Whoops, missed that one

- Elias, Damezean, Nackidno, Wonderboy

AntocGames - http://antocgames.se.nu/
Marsekay
16
Years of Service
User Offline
Joined: 24th May 2008
Location:
Posted: 25th May 2008 19:28
Im having a few ranom issues with DBP i think its because i am using the trial version perhaps?

Marse
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th May 2008 01:09
Quote: "No, LOAD MUSIC is the command to use for MP3 files"


Doh! Apologies - forgot I wasn't on the DBC board.

TDK_Man

pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 26th May 2008 09:13
Is mp3 different in DBC and DBP?
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th May 2008 18:03
Quote: "Is mp3 different in DBC and DBP?"


It's confusing because it's different between versions.

Older versions of DBC would only play MP3s if they were loaded with Load Sound - in the same way you would load a WAV file. (The DBC help files still say that Load Music is for MIDI files and Load Sound is for MP3s).

Since V1.13 though you can play an MP3 using Load Sound or Load Music, but as I had got used to using Load Sound I hadn't noticed the change.

In DBPro I guess TGC just removed the MP3 support for MP3s in Load Sound completely.

TDK_Man

pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 27th May 2008 06:46
I see.
Thank you.

Login to post a reply

Server time is: 2024-11-25 23:52:59
Your offset time is: 2024-11-25 23:52:59