Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Making a "Radio" in Delphi
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Tue Jun 26, 2007 10:04 am    Post subject: Reply with quote

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
View user's profile Send private message
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Tue Jun 26, 2007 10:21 am    Post subject: Reply with quote

Haha!! And Renko, one of my friends is going to Japan soon for 2 weeks..With 35 other kids from LI. Wink
Back to top
View user's profile Send private message
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Tue Jun 26, 2007 10:24 am    Post subject: Reply with quote

smartz993 wrote:
Haha!! And Renko, one of my friends is going to Japan soon for 2 weeks..With 35 other kids from LI. Wink
Awesome, tell him I said to have a blast.
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Tue Jun 26, 2007 10:42 am    Post subject: Reply with quote

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 Laughing

may i kiss you ?
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Tue Jun 26, 2007 12:10 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Tue Jun 26, 2007 12:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Jun 27, 2007 6:30 am    Post subject: Reply with quote

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 Very HappyVery Happy
Back to top
View user's profile Send private message MSN Messenger
TheSorc3r3r
I post too much
Reputation: 0

Joined: 06 Sep 2006
Posts: 2404

PostPosted: Wed Jun 27, 2007 12:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Jun 27, 2007 2:47 pm    Post subject: Reply with quote

Kevinnn wrote:
EDIT: IT WORKS WITH .WAV FILES Very HappyVery Happy


MSDN would save you alot of time.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Jun 27, 2007 11:34 pm    Post subject: Reply with quote

You can use a TMediaPlayer to play MP3 files
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Thu Jun 28, 2007 5:18 am    Post subject: Reply with quote

MSDN?

assaf, i know. I tried, and im now able to play mp3 files, but only using TMediaPlayer component.
Back to top
View user's profile Send private message MSN Messenger
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Thu Jun 28, 2007 6:56 am    Post subject: Reply with quote

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 Surprised

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites