Thank you. Worked like a charm. Best way to implement both wav and 
mp3. One more lead to a About.com article was a real help.

Anu Rang, TotallyFreeEnergy
http://totallyfreeenergy.zxq.net

--- In [email protected], "Peter Luijer" <[EMAIL PROTECTED]> wrote:
>
> You can easily add your MP3 or WAV as a resource and stream it out
> again at runtime with a TResourceStream and "External" 
play/decoding-
> code or with the PlaySound API-function.
> 
> If you want to use MP3 in combination with PlaySound, make sure you
> write the MP3 with a valid WAVE (RIFF-format $55 type) header.
> 
> 
> Greetz,
> 
> Peter.
> 
> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:[EMAIL PROTECTED]
Namens Anu
> Rang
> Verzonden: donderdag 26 juni 2008 20:38
> Aan: [email protected]
> Onderwerp: [delphi-en] Embedding a wav/MP3 file in a Delphi Form at 
design
> time
> 
> 
> I am trying to add sound (wav/mp3) to my Delphi form. I have tried
> using the OLE container component. It is messy and does not work the
> way I want it. Brings up the mediaplayer slowly and then asks me if 
it
> is ok to open the sound file since it is from a unpublished source.
> Irritating ! I am only trying to make it sing while the timer goes 
off J
> 
> I would really appreciate it if anyone can add any input on this.
> 
> Thanx-n-advance
> 
> Anu Rang, TotallyFreeEnergy
> http://totallyfreeenergy.zxq.net
>


Reply via email to