![]() |
DXWaveList spielt keinen Sound ab
Hallo!
Hab da ein kleines Problem betreffend DXWaveList. Ich will einen Sound abspielen, den ich dynamisch in die DXWaveList lade: Surface = mein Formular soundlist = die DXWaveList
Delphi-Quellcode:
Funktioniert alles einwandtfrei, aber wenn ich den Sound mit play abspielen will, hört man nichts (und ich bin mir sicher, dass meine Lautsprecher an sind):
var temp:TWaveCollectionItem;
begin if not fileexists('.\sounds\'+name+'.wav') then downloadSound(name); //eigene Funktion von mir temp:= (Surface.soundlist.Items.Add() as TWaveCollectionItem); temp.Wave.LoadFromFile('.\sounds\'+name+'.wav'); temp.Name:= name; temp.Looped:= looped; temp.Volume:= 8000; temp.Pan:= 0; temp.Restore;
Delphi-Quellcode:
Weiß jemand wo mein Fehler liegt? :gruebel:
Surface.soundlist.Items[0].Play(false);
Ich wäre für jeden Vorschlag sehr dankbar. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:43 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz