Bonjour,
Dans la poursuite de mon projet de réalisation d un lecteur mp3, j en suis arrivé à la gestion du son.
J'ai choisi FMOD.
Mais voilà j'ai un problème, quand j execute ce code :
Une exception se produit expliquant qu'un acces à 0000000 est effectué lors de l execution de FSOUND_Stream_Open.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 current_song := FSOUND_Stream_Open( PChar(current_song_str), FSOUND_2D, 0, 0 ); if(current_song = nil)then Application.Terminate else begin current_channel := FSOUND_Stream_Play(12, current_song); if(current_channel = -1)then Application.Terminate; end;
Je n'arrive pas à savoir pourquoi cette erreur se produit.
Pour info, current_song_str est une string, current_song un handle de type PFSOUNDStream, et current_channel un integer.
Partager