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 / A music problemin my exe

Author
Message
Qualed Entertainment
19
Years of Service
User Offline
Joined: 17th Nov 2005
Location:
Posted: 12th Feb 2007 22:54
Ok, so I am making a valentine gift for my girlfriend, and I wanted Iris by Goo Goo Dolls to play the whole time. When I play the exe on my computer the song plays, but when I tested the exe at school today, the song doesn't play. Now, I'm thinking it's because the song is a .wma file, but I don't know.

I want to mail this out as soon as I can, so I would really like it if anyone could help me with this.

Code:
\/



If you need the sounds and bitmaps, just tell me.

A slight change..... Qualed Entertainment is no longer with us. The new name is Station 7 Produtions.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Feb 2007 00:06
Load Music is only intended to be for MIDI files, but I have used MP3 files in the past with no problems.

Have you tried converting the WMA file to an MP3?

TDK_Man

Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 13th Feb 2007 00:31
dbc should support .wma though http://darkbasic.thegamecreators.com/?f=features


i like pancakes..
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Feb 2007 10:54 Edited at: 13th Feb 2007 10:56
Quote: "dbc should support .wma though"


Yes, but I suggested trying MP3's because the problem wasn't on his machine but another one which he had no control over.

[Edit] Just had a thought... Did you use Build Final or just created an exe? There's a possibility that the exe you created didn't actually contain the wma file and worked on your machine because it was in your project folder. Did you get any errors at all?

TDK_Man

Qualed Entertainment
19
Years of Service
User Offline
Joined: 17th Nov 2005
Location:
Posted: 13th Feb 2007 18:26
I didn't get any errors. And I built the exe as a stand alone, I'm not sure if thats a Build Final off the top of my head. And no, I haven't tried converting it into MP3, mostly because I don't know how.

And Lucifer, the link says that .wma it can load, but can not save.

A slight change..... Qualed Entertainment is no longer with us. The new name is Station 7 Produtions.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Feb 2007 19:13
Quote: "And I built the exe as a stand alone, I'm not sure if thats a Build Final off the top of my head."


If you use Make Exe (F6) then you MUST include with the exe, all files used by the program in the same folder structure as you have it working at home.

If you use Make Final (F7) then all compatible external files are compiled into the final exe - which can then be supplied as a single working file.

With DBC though, Make Final can be problematic if all files to be included are not in the same folder as the DBA file.

TDK_Man

Qualed Entertainment
19
Years of Service
User Offline
Joined: 17th Nov 2005
Location:
Posted: 13th Feb 2007 19:35
F7. And I am sure that the file is in the folder, but I'll cheack again when I get home.

A slight change..... Qualed Entertainment is no longer with us. The new name is Station 7 Produtions.
Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 13th Feb 2007 19:59
Quote: "If you use Make Final (F7) then all compatible external files are compiled into the final exe - which can then be supplied as a single working file."


but! if you use any .dll files with your project.. remember to make them come with your .exe if you built final..


i like pancakes..
Qualed Entertainment
19
Years of Service
User Offline
Joined: 17th Nov 2005
Location:
Posted: 13th Feb 2007 22:51
No .dll files for me.... but I don't suppose either one of you could recommend a way to convert .wma to MP3 or .wav?

A slight change..... Qualed Entertainment is no longer with us. The new name is Station 7 Produtions.
Spopovich
18
Years of Service
User Offline
Joined: 12th Jul 2006
Location:
Posted: 13th Feb 2007 23:29
The easiest way I can think of converting wma to wav or mp3 is to simply play a file in your media player and record it. If you go to volume control---->options---->properties---->recording, hit ok, then select wave out mix. Now when you play a song and record, it records internally and you shouldn't loose too much quality.

Do not ask what the forums can do ask what you can do for the forums.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Feb 2007 00:20
Winamp - it's free to download if you don't have it.

1. Run it

2. Press Ctrl-P

3. Scroll down to Plug-ins and click on Output (Note which one it's currently set on)

4. Select the Nullsoft Disk Writer plug-in

5. Click the Configure button

6. Set the directory you want the new file

7. In the Conversion section, tick the Convert to format checkbox and click on the large button below it

8. Select MP3 as the output

9. CLick OK

10. Click the Close Button

11. Load and play the WMA file

Instead of hearing the music, it will/should write the song as an MP3. Don't have any WMA files myself so couldn't test it - I only use the option to convert MP3's to WAV files myself.

When finished don't forget to go back and set the Output plug-in back to what it was before.

TDK_Man

Qualed Entertainment
19
Years of Service
User Offline
Joined: 17th Nov 2005
Location:
Posted: 16th Feb 2007 18:26
Thanks everybody, I couldn't get on the past few days because of digging myself out of twos snow days. But I will check out Winamp, TDK. And Spopovich, I'm sorry, but you lost me with your idea. You could email me and explain it better, if you don't mind. menosay gmail.

A slight change..... Qualed Entertainment is no longer with us. The new name is Station 7 Produtions.
Bit Rat
19
Years of Service
User Offline
Joined: 3rd Jun 2005
Location: Double Dungeons- dungeon 21
Posted: 10th Apr 2007 13:17
TDK_Man, do you need a special dll to play MP3 files? I've tried it in DBC and it said it could not load the file. Am I missing somthing?

Login to post a reply

Server time is: 2025-05-26 05:13:39
Your offset time is: 2025-05-26 05:13:39