How do I put sound into my program, preferably mp3. I want to execute mp3's or any sound type file and be able to somtimes place other sound overtop of existing sound and somtimes, cut it out to be replaced with new. I'm not worried about dual yet, if I could just be told on how to exe a sound file inside my program that would get me started fine.
Comments
Add a control in your toolbox (RMB at the toolbox, customize).
Add the control ''windows media player''.
Enter the following lines in your program:
mediaplayer1.filename = "c:samplefoldermy.mp3"
Mediaplayer1.play 'IF it does not starts playing automaticly...
That should be it. Just make the player invisible, and you can add any sound...
Kind Regards
Konrad
----------------------------
(+46/0) 708-70 73 92
chamster@home.se
http://konrads.webbsida.com
:
: His answer may allow me to do some things on my site easier but I would really appreciate learning the algorithm of [b]decoding[/b] a mp3-file. That would make things flow much better for the app im composing now. Please send code or link to example, to both peepz, thanx alot but this method is more of what I was looking for, although using win media player will come in very useful too.
And so would i. Actually i've done some things with it but i don't think i sould give you any tips on that yet. In a week or two, maybe :-).
Kind Regards
Konrad
----------------------------
(+46/0) 708-70 73 92
chamster@home.se
http://konrads.webbsida.com
Ny new question is, how do I make an mp3 part of my project. I ask because I want to make this app an install for others. How do I have the mp3 there, installed with the project? example... If you placed my program on your comp, you wouldn't hear the song I wanted and would develop error, how would I have that mp3 added so when you installed it would be in the directory of installation with application?