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 Discussion / midis don't work for me

Author
Message
Yodaman Jer
User Banned
Posted: 7th Dec 2007 21:21
I can play an midi in Windows media player, but when I try to play one in DarkBASIC it won't play ( and the code is right.)
I've had this problem with other games as well (that were made by DBC), and so I'm wondering if I could use a .wav music file instead?
Or does it actually matter?
Maybe I should also upgrade to DBC 1.20...would that help?

Yodaman

Signatures....peh. I never come up with anything good to say in them. Ah well.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Dec 2007 23:08
my old computer wont load music, I don't understand why but the same thing happens.
The way I got around it was loading .wav files as sounds but you can't load midis as sounds

"You must be someone's friend to make comments about them." - MySpace lied.
Yodaman Jer
User Banned
Posted: 8th Dec 2007 00:29
so does this mean I COULD load .wavs as music?
If so, that would make me happy...

Signatures....peh. I never come up with anything good to say in them. Ah well.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Dec 2007 00:30
ummm I think so not sure
I don't like music, there aren't enough commands for it.

"You must be someone's friend to make comments about them." - MySpace lied.
Yodaman Jer
User Banned
Posted: 8th Dec 2007 00:34
Yeah, music can sometimes be distracting in games.
Sound FX, however...enhance the game play.

Signatures....peh. I never come up with anything good to say in them. Ah well.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 8th Dec 2007 02:08
Convert the wavs to MP3's - a lot smaller and practically the same quality.

I even convert smaller SFX wavs to mp3's.

And yes - you should upgrade to V1.20 anyway...

TDK_Man

Yodaman Jer
User Banned
Posted: 8th Dec 2007 02:59 Edited at: 8th Dec 2007 03:04
Thanks TDK.
Now I have a new problem though..which is convincing me to upgrade.

I have tried to create an interesting program--called the goose chasing program (you'll see why) which eventually leads to a 3D world.
However, when you get there, several glitches occur.
1), a block that isn't programmed to appear suddenly appears around a box I told to appear, and is replaced by ANOTHER green block that I made. You'll see what I mean.
2)the sphere disappears into nothingness when you turn. I tried re-arranging the camera angle to see if that was the problem, but it wasn't.

Here's my code:


on the bright side, I finally got the collision detection thing down.
I guess I'll upgrade DBC right now...maybe that is the problem.

Yodaman

EDIT: errrr...can I have the link to the upgrade please?

Signatures....peh. I never come up with anything good to say in them. Ah well.
Yodaman Jer
User Banned
Posted: 8th Dec 2007 03:43 Edited at: 8th Dec 2007 04:23
Found it never mind.

EDIT: Well, it seems to be a problem with the SET DISPLAY MODE command.
I removed it and the program worked perfectly. Test it out.

I also can't get the upgrades to work at all...which is odd, considering that it should..unless I messed something up horribly...


Signatures....peh. I never come up with anything good to say in them. Ah well.
heartbone
22
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 9th Dec 2007 04:05
A 1.36 MB download of a DB game that has some really cool MIDI tunes.
It should play on your system.
It was built last March using the 1.13 version compiler on Windows 98.
Lots of thing have changed since then.

I'm unique, just like everybody else.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 9th Dec 2007 08:30
I liked the game but there wasn't any music

"You must be someone's friend to make comments about them." - MySpace lied.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 9th Dec 2007 18:45 Edited at: 9th Dec 2007 19:00
The game confused me - but I didn't read the instructions as I was only checking out the music side of things. I'll take a better look at it later as it looks interesting...

But, as for the music, it works perfectly for me so I guess that those who don't hear anything have either got Synth turned off in their sound control panel or have something else disabled on their soundcards.

Note: If you have a motherboard with on-board sound, the port tends to be turned off by default in the BIOS.

It's a long time since Ive used MID files (in SwapIt!), but they have always worked for me.

[Edit] I can confirm that there is no problem with playing MID files in DBC V1.20. I've attached the small test file I used, (3K). If it doesn't work, check your sound drivers/settings.

TDK_Man

Attachments

Login to view attachments
Yodaman Jer
User Banned
Posted: 10th Dec 2007 20:41 Edited at: 10th Dec 2007 21:03
Cool..thanks TDK.
I think now would be a good time to tell you I didn't program music in that. I tried to, but it wouldn't play, so I took it out.
I'll check my soundcard and settings, but I think I'll try using .mp3s anyway.

Thanks again!

Yodaman Jer

Signatures....peh. I never come up with anything good to say in them. Ah well.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 10th Dec 2007 20:56
Quote: "But, as for the music, it works perfectly for me"


I was referring to the music in heartbone's download - which was MID files and worked perfectly.

TDK_Man

Yodaman Jer
User Banned
Posted: 10th Dec 2007 21:36
Oh..my mistake.

Signatures....peh. I never come up with anything good to say in them. Ah well.

Login to post a reply

Server time is: 2025-06-02 10:10:53
Your offset time is: 2025-06-02 10:10:53