[Excel 2003] Playsound, problème .mp3

Bonjour à tous,

je suis en train de travailler sur un programme qui joue des sons, de ce fait, j'ai utilisé cette fonction:

Const SND_SYNC = &H0        ' (Default) Play the sound synchronously. Code execution
                            ' pauses until sound is complete.

Const SND_ASYNC = &H1       ' Play the sound asynchronously. Code execution
                            ' does not wait for sound to complete.

Const SND_NODEFAULT = &H2   ' If the specified sound is not found, do not play
                            ' the default sound (no sound is played).

Const SND_MEMORY = &H4      ' lpszSoundName is a memory file of the sound.
                            ' Not used in VBA/VB6.

Const SND_LOOP = &H8        ' Continue playing sound in a loop until the next
                            ' call to sndPlaySound.

Const SND_NOSTOP = &H10     ' Do not stop playing the current sound before playing
                            ' the specified sound.

Const SND_FILENAME = &H20000

Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" _
    (ByVal lpszName As String, ByVal hModule As Long, _
    ByVal dwFlags As Long) As Long

J'arrive à jouer un .wav normalement, cependant, cela ne fonctionne pas avec un fichier .mp3, j'obtiens le son de windows "plunk".

Est-ce que c'est compatible ?

Peut-on jouer un son autre qu'un .wav avec cette fonction ?

Fourni ci-dessous le fichier excel ainsi que un son .mp3 dans une archive .zip

Je vous remercie d'avance pour votre aide.

19sonsgame.zip (83.37 Ko)
Rechercher des sujets similaires à "2003 playsound probleme mp3"