j'arrive à lire un .s3m avec initsound(); loadmusic() et playmusic() , en includebinary ou non
maintenant j'ai mis le fichier en ressource, ajouté le fichier .rc dans les options du compilo, (avec reshack je vois bien mon .s3m)
pas moyen de le faire jouer ....j'ai adapté le code du MSDN
mon .rc :
Code : Tout sélectionner
;*************************************************
// LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
SOUND_1 S3M "satell.s3m"
;*************************************************
Code : Tout sélectionner
InitSound()
hInst = GetModuleHandle_(#Null)
hResInfo = FindResource_(hInst, "SOUND_1", "S3M")
hRes = LoadResource_(hInst, hResInfo)
lpRes = LockResource_(hRes)
sndPlaySound_(lpRes,#SND_MEMORY | #SND_SYNC | #SND_NODEFAULT)
merci bien