Add support for moving ISounds after creation.
This commit is contained in:
@@ -46,5 +46,6 @@ namespace OpenRA
|
|||||||
float Volume { get; set; }
|
float Volume { get; set; }
|
||||||
float SeekPosition { get; }
|
float SeekPosition { get; }
|
||||||
bool Playing { get; }
|
bool Playing { get; }
|
||||||
|
void SetPosition(WPos pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -405,5 +405,10 @@ namespace OpenRA.Platforms.Default
|
|||||||
return state == AL10.AL_PLAYING;
|
return state == AL10.AL_PLAYING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetPosition(WPos pos)
|
||||||
|
{
|
||||||
|
AL10.alSource3f(Source, AL10.AL_POSITION, pos.X, pos.Y, pos.Z);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user