Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Hololens 2: RemoteAudioTrack.cs: OutputToDevice property does not mute native sound #849

@tettogreen

Description

@tettogreen

Description
Default implementation of PeerConnection.cs implies muting of Hololens 2 native sound:

        private void CreateNativePeerConnection()
        {
            // Create the peer connection managed wrapper and its native implementation
            _nativePeer = new WebRTC.PeerConnection();

            _nativePeer.AudioTrackAdded +=
                (RemoteAudioTrack track) =>
                {
                    // Tracks will be output by AudioReceivers, so avoid outputting them twice.
                    track.OutputToDevice(false);
                };
        }

However it doesn't - as a result by default application plays sound both from native audio and from AudioSource components in the scene.

Important Note:
This function works as expected on the PC - no duplicated sounds are played together.

Environment

MRTK version: 2.7.2.0
Platform: UWP
Architecture: ARM
Unity version: 2020.3.25
Target device: HoloLens 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions