Using same wav-file in two Media Players

I'm creating an authoring tool where the user can place two wav-files on
one page.

The user can choose wavfiles in a file dialog and add the sound to the

When the user chooses the same wavefile twice the program crashes with
and EMCIDeviceError: "The device name is already being used as an alias
by this application. Use a unique alias"

Does anyone have a solution to this problem ??