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.

DarkBASIC Professional Discussion / Music and Sounds in DBP

Author
Message
Matto
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 11th Mar 2003 03:19
I am currently fatigued with nonsence from the sound and Music Department, I seem to have encountered a problem that is when I use the "Music Playing(Music Number)" command in conjunction with an integer variable ie:

MusP1=Music Playing(1)

The command Music Playing(1) always returns 1 even when the music has stopped Playing, I would presum the correct answer should be 0(zero) if the music is not currently playing or has finished playing. I have tried using the command in as many ways as I can make sence of but the problem of it returning 1 is always there.

Has anyone else had this problem or has had a problem like it but found a work around? I have had similar problems with .Wav Sound files as well as the .MP3 files I am using for music, using Wav files for music makes the files too large really for practical use or file packing.
1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
TRS80Model1
22
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: - Please Select -
Posted: 11th Mar 2003 06:30
Yes it don't work....

There is however bass.dll somewhere on the net which I will use someday that plays tracker files, midi, mp3 and something else. And it returns proper values. It is not free for commercial software though.
Matto
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 12th Mar 2003 03:30
This seems true of the sound files too, bizzarly it may report 1 sound back as 0(zero) after it has played but not another??

I have tested the same code I am using in DBP on the DB V1 and it works perfectly for the Sound (.wav) files but the music files (.mp3) also do not return a 0(zero) after they have finished playing, as I would expect them too, I realise there are differences in the DB V1 and DBP but I have consulted the help files with no luck on sorting the sound out as of yet... if I get 1 going adding more seems to choke it up and I get all sorts of things happen from nothing to bizzar noises, if I am missing something here I would appreciate being let in , it's affecting my Retro entry quite badly as I've spent 3 nights on the sound alone and I am still at first stages of implemtation.., thats time I could well have used on the rest of the game.

Out of interest how does everyone else manage?

All I am trying to do is load some sounds/music, increment variables in the program if a sound is needed and then depending on the number a sound/music variable returns, it should play a sound if that sound is not already playing or other sounds related to it are not already playing.

1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 12th Mar 2003 04:00
Is this the sort of thing you meen?



Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
Matto
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 14th Mar 2003 04:07
Thanks Pneumatic, but that isn't what I had in mind, however I have finally managed a work around it after 3 days.. lol(just finished sorting it), I am using the Loop and stop commands instead of the idea I had originally(which would have been great and mean I could have changed or altered music on the fly dependant on what the player is doing).

I must add that I think the situation here is a misinterpretation on my behalf of the commands, I actually wonder if they were not meant to be used as I set out to use them, even though it would make good sence, I feel they are purly there to see if a sound is playing or has been marked as playing, it does not actually report back as being stopped untill you stop it which is a shame. I definatly think the sounds and music commands could use a revamp.. if not only to report back the Music as either playing, played or not playing, not played.. just an idea. even a command that lets you know which bar your at or a pointer of somekind that can let you cut out of one piece and into another at similar points in the music. I know there is a KB thing but I couldn't see much on how to use it? maybe I should look harder. I would write a dll if I had half a brain to do it with , but alas I only have a quarter

1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
TRS80Model1
22
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: - Please Select -
Posted: 14th Mar 2003 04:17
They worked in the db classic demo, so I sure its a bug in dbpro.

Login to post a reply

Server time is: 2025-05-18 20:34:56
Your offset time is: 2025-05-18 20:34:56