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 / Music loading, but not sounding, why?

Author
Message
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 4th Apr 2009 01:54
Im using a song made by NGX Musical named "Tick Tack Macarena" in my dbpro project. Its an mp3 media, and dbpro reads mp3 media, but, for some reason, it loads, but dont sound, it just dont sound.
You can download the track in this page, http://www.soundclick.com/bands/page_music.cfm?bandID=629296
so u can see if u can help me with my problem, because, maybe its the track which is making the problem.

Sooo, here is the code, its very simple.




Soo, plz, if someone know about this problem, or maybe want to help me to resolve it, plz post here, so, ty.

REMEMBER ME, IM YITZU
kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 4th Apr 2009 03:46 Edited at: 4th Apr 2009 03:48
are you sure your speakers and everything are working. if yes try removing suspend key and put wait key. if this doent work email me at kuljot123@att.net. the reason i said email was i cant keep track of all the posts ii repled too. so this way you can be sure i read your reply and answer your question. by the way i see the code you included looks like a gosub. try to load and play the song in the open code not gosubs that might work.

Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 4th Apr 2009 04:34
Hey, i did everything wat u say, and, nope, the problem continues, and, also, i send u the mail, but it says theres an error, so, well, i dont know.

Hey, if someone know about my problem, plz post something
Orion1024
15
Years of Service
User Offline
Joined: 7th Mar 2009
Location: Dimensional Coordinates: 323.935.914.157
Posted: 4th Apr 2009 06:35
It's not playing because of the bitrate. All my MP3's that I've ripped from my own CD's are 320Kbps and they also won't play in DBP. You'll need to re-encode them at a lower bitrate. I have not verified it, but I think 128Kbps is max bitrate that will play.

Looking for the vortex to another Earth
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 4th Apr 2009 07:08 Edited at: 4th Apr 2009 07:09
there's nothing wrong with the mp3 or the way you're playing it. once you call play music or loop music it'll play regardless of wait, wait key or suspend for key.

my hunch is it's tied to your other sound/volume "issues" mentioned recently; the whole "it's not remembering me" thread. so, before you play music, add "set music volume 100". leave your suspend key in place and see if you can hear it (in case you're setting volumes again somewhere else down the road...). if not, it's your speakers or something else outside of dbpro that's causing all your problems.

kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 4th Apr 2009 09:18 Edited at: 4th Apr 2009 09:24
hey from volume mixer you might by chance have dpro muted.iv never tried playing music in a gosub.so i though that might have been the promblem. right now im thinking it is because you might have dbpro muted from the volume mixer if you have vista.

Edit: hey i tried loading and playing music while in a gosub. it did not play. so im pretty sureyou need to load and play either in the main program outside of gosubs or make a function. i may be wrong.

Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 4th Apr 2009 16:26
p.s. Make sure to assign a number to the bitmap. That might be stopping it from running. Also, make sure that it's the right filename. You're saying this:



Hope that helped.

That's what they WANT you to think...
kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 4th Apr 2009 21:48 Edited at: 4th Apr 2009 21:49
YEP NOW I KNOW YOUR PROMBLEM. IT IS BECAUSE YOU DID NOT ASSIGN A NUMBER TO THE BITMAP IMAGE. AND Quirkyjim I THINK YOU POSTED C++ CODE. HEY YITZU IT SHOULD WORK IF YOU ASSIGN A NUMBER TO THE BITMAP. IF YOU WANT THE BITMAP TO DISPLAY RIGHT AFTER LOADING THEN THE CODE SHOULD BE LIEK THIS



IT WILL WORK NOW. YOURT PROMBLEM WAS NOT ASSIGNING THE BITMAP A NUMBERT. I ASSIGNED IT ZERO SO IT WILL DISPLAY AS SOON AS LOADING.

Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....
Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 5th Apr 2009 16:53
Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 5th Apr 2009 19:18 Edited at: 5th Apr 2009 19:25
The bitmap code shouldn't effect the music playing. Lastly it's not necessary to assign a number to "load bitmap"
[Edit]
You should also be able to play music using gosub

Attachments

Login to view attachments
kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 5th Apr 2009 20:35
but normally the program will terminate if you dont assign a number to the bitmap wont it. because of you load it without number how are you suppose to call it later.

Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....
Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 5th Apr 2009 21:29 Edited at: 5th Apr 2009 21:30
Quote: "but normally the program will terminate if you dont assign a number to the bitmap wont it. because of you load it without number how are you suppose to call it later."

I think your talking about load image not bitmaps they're two different commands. (correct me if I'm wrong...) Load bitmap only loads and temporary displays a image for one time use(on the current screen your on if you don't put in a number). Unlike images where you can load the image into a index where you can call it as many times as you want.
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 6th Apr 2009 00:23
Quote: "I THINK YOU POSTED C++ CODE"


First, please turn the volume down. There's a reason why we don't like all caps here.

Second, it wasn't C++ code, it was a visual to show what I meant.

That's what they WANT you to think...
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 9th Apr 2009 00:52
Emmm, i tried by puting the bitmap number, but, no, nothing happened. So, ill try to do what Orion said, ill change the bitrate of the track, i dont know, maybe that was the problem...
Anyway, ty a lot everybody for helping me here, ill tell u if the bitrate was the problem.

Thx
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 10th Apr 2009 22:49
YEEEEEEESSSSS! XD Lol, just resolved the problem, can u believe it was just to change it to wav and say to darkbasic it was a sound format?! lol, y is it always like, so simple, but so hard to get. lol

Well, ty a lot to all the people that helped me with this. And...

REMEMBER ME, IM YITZU!

Login to post a reply

Server time is: 2024-11-24 08:38:00
Your offset time is: 2024-11-24 08:38:00