Jump to content

  • Log In with Google      Sign In   
  • Create Account


play a .wav-file with c++ builder 5.0


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 hewlett   Members   -  Reputation: 122

Like
Likes
Like

Posted 11 January 2002 - 11:54 AM

Hello together I would like to play on a Click Event (Button or so) a wav-File. The wav-file is in the same directory as the .cpp file. Do you have any idea how to get it? Thank you very much hewlett

Sponsor:

#2 Andre Luiz Silva   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 January 2002 - 04:50 AM

This is a lazzy way: you can use the MediaPlayer control located at the System Tab.

"- To begin with, said the Cat, a dog''s not mad. You grant that?
- I suppose so, said Alice.
- Well, then, - the Cat went on - you see, a dog growls when it''s angry, and wags its tail when it''s pleased. Now I growl when I''m pleased, and wag my tail when I''m angry. Therefore I''m mad."

#3 granat   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 January 2002 - 05:01 AM

Look up PlaySound() is you are using Windows.

It can only play one sound at a time but it''s very simple to use.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS