View Full Version : Wave.LoadFromFile is being weird

14-11-2003, 09: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.

16-11-2003, 11:22 AM
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.