When I launch my application, background music starts. The code below allows me to get that, provided that I integrate a WAV audio file into the resources.
Unfortunately, a WAV audio file is very heavy: my file is 40 MB. If I used the same audio file in mp3, it would be: 2.75 MB.
Visual Basic does not accept mp3 files. Is there not a way around this problem? Thank you for your reply.
Class MainWindow
'Music Background.
Private Sub Main_Form_Loaded(sender As Object, e As RoutedEventArgs) Handles Main_Form.Loaded
Dim son = New Media.SoundPlayer(My.Resources.My_Music)
son.PlayLooping()