Autor Beitrag
Flamefire
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: Sa 09.02.08 16:50 
Hi
ich benutze folgenden Aufruf um in einer DLL nen sound abzuspielen:
ausblenden Delphi-Quelltext
1:
PlaySound(PChar(1), HInstance, snd_ASync or snd_Memory or snd_Resource);					


Aber wenn ich wärend der wiedergabe die dll entlade (was ich teilweise muss, oder zumindest vorkommen kann) stürtzt das programm ab
wie verhindere ich das?
mit snd_sync und in nem thread?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 09.02.08 20:30 
Moin!

user profile iconFlamefire hat folgendes geschrieben:
wie verhindere ich das?
mit snd_sync und in nem thread?
Ja, wäre ein Ansatz. Probiers doch mal aus. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.