Autor Beitrag
Schalke
Hält's aus hier
Beiträge: 1

Win XP
D5 Std.
BeitragVerfasst: Sa 01.05.04 07:05 
Hallo zusammen,
ich bin neu hier und brauche dringend Hilfe !

Ich habe über den Joystick-Port einen Bewegungsmelder am PC angeschlossen. Der Bewegungsmelder wird von einem kleinen Delphiprogramm abgefragt und bei einem Ereignis wird ein Sound abgepielt. Zum Abspielen des Sound verwende ich DXSounds. Alles funktioniert prima, nur wenn ein anderes Fenster aktiviert wird (mein Prog ist im Hintergrund) wird kein Sound mehr abgespielt (Bewegungen werden aber noch registriert).
Wie schaffe ich es, daß mein Porgramm auch im Hintergrund einen Sound abspielt ?

Ich hoffe es kann mir hier jemand helfen !


Gruß
Schalke
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Sa 01.05.04 19:25 
nimmt fmod(www.fmod.de) da kann das was du haben möchtes..... sonst nimm die TMediaPlay oder poste dein code *G*

_________________
MFG
Michael Springwald, "kann kein englisch...."
Simon Joker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 236
Erhaltene Danke: 1



BeitragVerfasst: Mo 03.05.04 08:42 
Hi Schalke

Siehe in den Options der DXSound-Kompo:
Zitat:
soGlobalFocus
Even if the foucs is lost,the application does not mute the sound .However,when the foucs is switched to the application to which an exclusive level is set at the cooperation level of other DirectSound,the sound is muted.


Also setze es auf true und der Sound ist immer zu hören.