PDA

View Full Version : Wave.LoadFromFile is being weird



Yin
14-11-2003, 10:22 PM
So I try to use LoadFromFile to load a wav into a TWaveCollectionItem, but it's just being ignored or something. The only place where this works is in the "OnInitzialize" of the TDXSound. If I try it at any other place in the code, nothing happens. It just keeps the same sound as before.

It's really annoying, so I'd appreciate it if someone could help me out here.

Yin
16-11-2003, 12:22 PM
Never mind, I worked around it by finalizing and initializing the DXSound when I need to load sounds. Maybe not the best way, but it works good enough for the program I was doing.