| View previous topic :: View next topic |
| Author |
Message |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Tue Jun 26, 2007 10:04 am Post subject: |
|
|
| Kaspersky wrote: | | Renkokuken wrote: | http://delphi.about.com/od/objectpascalide/a/embed_resources.htm
God, you people are fucking impossible. |
i lol'd | The kid wants embedded music, he didn't want a "radio" such as WinAMP.
And you have no right to "lol" at anything, the kid Simsgy is better than you on only his 4th application.
|
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Tue Jun 26, 2007 10:21 am Post subject: |
|
|
Haha!! And Renko, one of my friends is going to Japan soon for 2 weeks..With 35 other kids from LI.
|
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Tue Jun 26, 2007 10:24 am Post subject: |
|
|
| smartz993 wrote: | Haha!! And Renko, one of my friends is going to Japan soon for 2 weeks..With 35 other kids from LI.  | Awesome, tell him I said to have a blast.
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Tue Jun 26, 2007 10:42 am Post subject: |
|
|
| Renkokuken wrote: | | Kaspersky wrote: | | Renkokuken wrote: | http://delphi.about.com/od/objectpascalide/a/embed_resources.htm
God, you people are fucking impossible. |
i lol'd | The kid wants embedded music, he didn't want a "radio" such as WinAMP.
And you have no right to "lol" at anything, the kid Simsgy is better than you on only his 4th application. |
i lol'd
may i kiss you ?
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Tue Jun 26, 2007 12:10 pm Post subject: |
|
|
why doesnt delphi accept my code?
implementation
{$R *.dfm}
{$R MyRes2.res}
procedure TForm1.Button1Click(Sender: TObject);
begin
PlaySound(('MyMP3File'),HInstance,snd_resource or snd_sync);
end;
it says Undeclared Identifer: Playsound, Snd_rescourses, Snd_sync
|
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Tue Jun 26, 2007 12:46 pm Post subject: |
|
|
| Kevinnn wrote: | why doesnt delphi accept my code?
implementation
{$R *.dfm}
{$R MyRes2.res}
procedure TForm1.Button1Click(Sender: TObject);
begin
PlaySound(('MyMP3File'),HInstance,snd_resource or snd_sync);
end;
it says Undeclared Identifer: Playsound, Snd_rescourses, Snd_sync | You're missing something in uses, most likely.
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jun 27, 2007 6:30 am Post subject: |
|
|
i figured this problem out
in uses i only need MMSystem to be able to use the code
procedure TForm1.Button1Click(Sender: TObject);
begin
PlaySound(('MyMP3File'),HInstance,snd_resource or snd_sync);
end;
another problem:
now it doesnt say anything, but the music wont start:
but im not sure if its the MyMP3File it cant take... because in the tuts it says MyWavFile. But since i didnt wanted a .wav file into my program, i tried with a mp3 file.
EDIT: IT WORKS WITH .WAV FILES 
|
|
| Back to top |
|
 |
TheSorc3r3r I post too much
Reputation: 0
Joined: 06 Sep 2006 Posts: 2404
|
Posted: Wed Jun 27, 2007 12:55 pm Post subject: |
|
|
| Quote: | | i know how to do it another way, but that way you need to give the correct path, like C:\music\lovesong |
Ask the user what the path to their music files are O_O
_________________
Don't laugh, I'm still learning photoshop! |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jun 27, 2007 2:47 pm Post subject: |
|
|
| Kevinnn wrote: | EDIT: IT WORKS WITH .WAV FILES   |
MSDN would save you alot of time.
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Jun 27, 2007 11:34 pm Post subject: |
|
|
| You can use a TMediaPlayer to play MP3 files
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jun 28, 2007 5:18 am Post subject: |
|
|
MSDN?
assaf, i know. I tried, and im now able to play mp3 files, but only using TMediaPlayer component.
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Thu Jun 28, 2007 6:56 am Post subject: |
|
|
http://msdn2.microsoft.com/en-us/default.aspx
It should help you a lot, you can search for an API, functions, and more and it's going to give you the syntax and EXAMPLES so you don't have to post all your problems in here
_________________
|
|
| Back to top |
|
 |
|