Sound In an App
-
How is it possible to get a program to play Midi \ Wav file when a button is pressed? I need my application to include 2-3 sound files which can be played when a button is pressed is this possible? if so how. And how do you display a bitmap on a button? :omg:
-
How is it possible to get a program to play Midi \ Wav file when a button is pressed? I need my application to include 2-3 sound files which can be played when a button is pressed is this possible? if so how. And how do you display a bitmap on a button? :omg:
mavgoose wrote: And how do you display a bitmap on a button? Search Botton control in this site and find lots if exampls. mavgoose wrote: How is it possible to get a program to play Midi \ Wav file when a button is pressed? Look into Audio part of this site. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
-
How is it possible to get a program to play Midi \ Wav file when a button is pressed? I need my application to include 2-3 sound files which can be played when a button is pressed is this possible? if so how. And how do you display a bitmap on a button? :omg:
sndPlaySound API Don't try it, just do it! ;-)
-
How is it possible to get a program to play Midi \ Wav file when a button is pressed? I need my application to include 2-3 sound files which can be played when a button is pressed is this possible? if so how. And how do you display a bitmap on a button? :omg:
The simplest way to play an audio file on windows is to use the PlaySound function. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/\_win32\_playsound.asp Putting a bitmap on a button? Depends on whether you're using mfc, wtl, win32 api, .net or something else. There's probably a dozen tutorials on this site alone explaining it, though.