Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Only process incoming audio when listener attached #71

Merged
merged 1 commit into from
Jun 3, 2016
Merged

Only process incoming audio when listener attached #71

merged 1 commit into from
Jun 3, 2016

Conversation

LuminescentMoon
Copy link
Contributor

Only process incoming udpClient messages when a listener is attached to the 'incoming' event of the stream. This will address a possible performance issue when an audio context is obtained from the unnecessary creation of expensive objects.

This is achieved by only attaching the message handler for the udpClient when a listener is attached to the 'incoming' event of the stream.

It is no longer necessary to manually set whether or not to handle incoming audio; thus the option to do so is therefore removed.

These changes do not make any breaking changes to the API.

Only process incoming udpClient messages when a listener is attached to the 'incoming' event of the stream. This will address a possible performance issue when an audio context is obtained from the unnecessary creation of expensive objects.

This is achieved by only attaching the message handler for the udpClient when a listener is attached to the 'incoming' event of the stream.

It is no longer necessary to manually set whether or not to handle incoming audio; thus the option to do so is therefore removed.

These changes do not make any breaking changes to the API.
@izy521 izy521 merged commit f8a3b9a into izy521:master Jun 3, 2016
@LuminescentMoon LuminescentMoon deleted the patch-1 branch June 3, 2016 05:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants