Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Embedding .mp3 file in VB?

Hi all,

I would like to ask if is it possible to embed mp3 files in a VB application? So far, i have only dealt with .wav file of file size less than 64K.

What if i want to include .mp3 file in my application? Do i still use the resource method? Because i have tried that and i cant get the whole song to be played (ONly for a merely 5 second).

Can someone provide me with an alternative?

Regards,
Justin
[444 byte] By [ootnitsuj] at [2007-11-11 8:51:16]
# 1 Re: Embedding .mp3 file in VB?
The alternative would be to include the file with your application as a complete file, then use sndPlaySound API to play the audio file (I THINK that works with MP3...)

so something like

sndPlaySound app.path & "\audio.mp3"
RHelliwell at 2007-11-11 17:24:51 >