mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-21 09:35:27 -04:00
18 lines
553 B
TypeScript
18 lines
553 B
TypeScript
namespace gdjs {
|
|
export namespace evtTools {
|
|
export namespace spatialSound {
|
|
export const setSoundPosition = (
|
|
instanceContainer: gdjs.RuntimeInstanceContainer,
|
|
channel: integer,
|
|
x: float,
|
|
y: float,
|
|
z: float
|
|
) => {
|
|
// TODO EBO The position must be transform to the scene position when it comes from a custom object.
|
|
const soundManager = instanceContainer.getScene().getSoundManager();
|
|
soundManager.setSoundSpatialPositionOnChannel(channel, x, y, z);
|
|
};
|
|
}
|
|
}
|
|
}
|