Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i Play an Mp3, Design Diagrams???

Status
Not open for further replies.

34534534534555

IS-IT--Management
Joined
Jan 8, 2003
Messages
240
Location
GB
Hello

1. How do i play an mp3 sound effect? when a certain action happens. for exapmle;

private sub cmd1_click
Play MP3
end sub

2. What are the most commonly used design diagram at present, which are simple? Which would be good for displaying the structure and design of the software?

TIA. Please let us know what you think of posts, feedback is always appreciated as this will help to further our knowledge as well. [bigears]
_________________________________________________
Create like a God, Command like a King, Work like a slave..
 
1. there is code at that details how to play mp3 using micro$oft media player... its straightforward so you should be able to pick out the meaty bits to play your mp3 sound

2. PASS!

hope this helps a little.
 
Thanks,

I actually wanted to use audio for sound effects in my program rather than an Mp3 player. It does not matter what format they are in. Is there no simple way of calling a sound effect?

UML. thanks! Please let us know what you think of posts, feedback is always appreciated as this will help to further our knowledge as well.
---------------------------------------------------------------------------
All that's required for evil to suceed is for good men to do nothing.
 
im not 100% sure but i think you can use the mediaplayer to play various sounds... not just mp3.
you could also look into directx sound but thats a little bit overkill.
 

For just sounds then you can use the media player as suggested, or the MMC (Microsoft Multimedia Control), the MCI API, and while we are talking about API there is sndPlaySound and PlaySound which has superceeded sndPlaySound but may have a memory leak that is fixable with the correct SP on OS (at least that's the way I think its fixed), and then as mentioned directx.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top