I’m sure someone might have answered this before and I’ve just missed it, so excuse me if they have!

Is it possible to play MP3 files that are embedded in my VB.Net .exe file? I can load the MP3 files into a Stream object, as in the code below, but haven’t worked out if I can then play the MP3 from the Stream. Any help or info would be appreciated!

    Dim assm As [Assembly] = [Assembly].GetExecutingAssembly
    Dim str As Stream
    Dim strResourceName As String = "PlayMP3.TRK0" & intTrackNumber & ".MP3"
    str = assm.GetManifestResourceStream(strResourceName)
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.