@newgameplusinc/odyssey-audio-video-sdk-dev 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare class OdysseySpatialComms extends EventManager {
|
|
|
44
44
|
upY: number;
|
|
45
45
|
upZ: number;
|
|
46
46
|
}): void;
|
|
47
|
+
setListenerFromLSD(listenerPos: Position, cameraPos: Position, lookAtPos: Position): void;
|
|
47
48
|
private listenForEvents;
|
|
48
49
|
}
|
|
49
50
|
export type { Direction, MediaState, OdysseyEvent, Participant, Position, RoomJoinedData, };
|
package/dist/index.js
CHANGED
|
@@ -185,6 +185,9 @@ class OdysseySpatialComms extends EventManager_1.EventManager {
|
|
|
185
185
|
setListenerPosition(position, orientation) {
|
|
186
186
|
this.spatialAudioManager.setListenerPosition(position, orientation);
|
|
187
187
|
}
|
|
188
|
+
setListenerFromLSD(listenerPos, cameraPos, lookAtPos) {
|
|
189
|
+
this.spatialAudioManager.setListenerFromLSD(listenerPos, cameraPos, lookAtPos);
|
|
190
|
+
}
|
|
188
191
|
listenForEvents() {
|
|
189
192
|
this.socket.on("new-participant", (participantData) => {
|
|
190
193
|
console.log("👋 SDK: new-participant event received:", {
|
package/package.json
CHANGED