change sound in bge

i had used python function “fileName” for sound actuator to change wav sound in bge, but it seems doesnt work.

i need to change car’s engine sound

here is a part of script:
if own.gear == 0:
engine.fileName = “car_idle.wav”

if own.gear == 1:
engine.fileName = “car_gear1.wav”

This Doesn’t Work!!! Help!!!:no:

Do you mean own[‘gear’]?

Could you post the whole script or a blend?

yes. When owner gear = 0
sound actuator should play car_idle.wav

When owner gear = 0
sound actuator should play car_gear.wav

Hm, this stayed unanswered, but I am just facing the same problem - the fileName property which was in 2.49 is missing in 2.5