Autor Beitrag
JaketheSnake
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Mi 09.11.05 21:11 
So ruf ich die sound dateien auf :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
function PlaySound(pszSound:pchar;hmod:pointer;fdwSound:Cardinal):Boolean;
   cdecl;
   external 'winmm.dll' Name 'PlaySound';


function TForm4.Play(FileName: PChar): Boolean;
begin
      Result:= PlaySound(FileName, Nil, SND_SYNC);
end;


Aber wie kann ich die lautstärke der einzelnen abspiele verändern ? :
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
     Play('media/usp/usp_Test1.wav'); {z.B derhier lauter}
     sleep(240);
     Play('media/usp/usp_Test2.wav'); { z.B derhier leiser}
     sleep(300);
     Play('media/usp/usp_Test3.wav');


// In der Forums suche hab ich nur die lautstärken regelung für den Media Player gefunden

_________________
Good, better , best
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Do 10.11.05 15:12 
www.ekiwi.de/scripts...&textfield=Hilfe

Moderiert von user profile iconraziel: Img-Tags entfernt.

_________________
Good, better , best