| View previous topic :: View next topic |
| Author |
Message |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Thu Jun 28, 2007 1:24 pm Post subject: [Help] Background Music |
|
|
Can I do something like that on Delphi...?
Thx :]
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jun 28, 2007 1:26 pm Post subject: |
|
|
depends on what you want.
.mp3 files?
.wav files?
want it to be avaible to all computers (takes up alot of space on your program) or just for your own?
If first thing i mentioned: Use .rc files to .res files (will describe if its what you want)
2nd thing: just use ShellAPI and ShellExecute to execute the song which is at the path you mention
Edit: Of course you can do it, but it just depends on these things i mentioned above.
|
|
| Back to top |
|
 |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Thu Jun 28, 2007 10:06 pm Post subject: |
|
|
| Kevinnn wrote: | depends on what you want.
.mp3 files?
.wav files?
want it to be avaible to all computers (takes up alot of space on your program) or just for your own?
If first thing i mentioned: Use .rc files to .res files (will describe if its what you want)
2nd thing: just use ShellAPI and ShellExecute to execute the song which is at the path you mention
Edit: Of course you can do it, but it just depends on these things i mentioned above. |
I want MP3.
But, I don't want the first thing. I want to the second, BUT, I don't want the music to be visible to the user of the program. He'll open the program and the song will start without any clicking or somethin' like that...
Understood...?
_________________
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Thu Jun 28, 2007 10:08 pm Post subject: |
|
|
1. on formcreate, dump mp3 to temp path
2. play with mciSendString
3. ???
4. Profit!
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jun 28, 2007 10:56 pm Post subject: |
|
|
appalsap , is that with ShellAPI, ShellExecute?
or not?
because if not he needs to make .rc files to .res files before being able to play the music.
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Thu Jun 28, 2007 10:58 pm Post subject: |
|
|
| Do a little research before you start making accusations. It's NOT with shellapi, and shellexecute is the worst possible thing you could do, because it starts up the program associated with that file (html, could be the browser, bat, windows command processor etc) instead of playing it yourself. He DOESNT need to make rc or res files, he can just play the music on disk.
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jun 28, 2007 11:01 pm Post subject: |
|
|
hmm, i dont get it :\
im using .rc to .res files to let it play my music. And its only .wav files i can have playing on background on form.create, otherwise i need a MediaPlayer component to start/stop the music if its a .mp3 file.
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Thu Jun 28, 2007 11:13 pm Post subject: |
|
|
| nope
|
|
| Back to top |
|
 |
Ksbunker Advanced Cheater
Reputation: 0
Joined: 18 Oct 2006 Posts: 88
|
Posted: Fri Jun 29, 2007 12:15 am Post subject: re: |
|
|
Don't use mp3 or wav sound format as they bloat trainer file size immensely.
Chiptunes are a better alternative and is what most reknowned keygens and trainers coders use.
Read the following tutorial to learn how to implement chiptunes into your projects. Its written for MASM, however explictly details how to implement detail by detail, api by api. The most important component of the tutorial are the mfmplayer.inc and mfmplayer.lib includes
To download and test chiptunes, visit www.chiptunes.org or google "chiptunes".
Rep is useful
|
|
| Back to top |
|
 |
|