drlobo | j'ai eu la reponse dans le forum de winamp:
Citation :
If you are using the CreateFile API function, then just open the file while Winamp is playing like this: CreateFile(FileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_ALWAYS, NULL, NULL)
|
donc moi en delphi j'ai fait:
var mp3:THandleStream;
FileHandle:=CreateFile(filename,GENERIC_READ, FILE_SHARE_READ,0, OPEN_ALWAYS,0,0);
mp3:=THandleStream.Create(FileHandle);
et ca marche!! |