Placeholder-Software / Dissonance

Unity Voice Chat Asset
70 stars 5 forks source link

[iOS] Mute button, on the iPhone, stops turning off the sounds #95

Closed alexander12356 closed 5 years ago

alexander12356 commented 6 years ago

Context

Hello, when you start a scene with Voice chat, the mute button, on the iPhone, stops turning off the sounds. Can we fix this somehow?

Expected Behavior

Mute button on iPhone turning off all sounds and music

Actual Behavior

Mute button on iPhone not turning off all sound and music

Steps to Reproduce

  1. Build integration project to iOS
  2. In online scene turn off/on mute button

Environment

martindevans commented 6 years ago

Hi Alexander,

I think this needs to be reported to Unity - Dissonance just plays audio out as if it were any other sound effect so we're not doing anything special that would affect the mute button.

The only thing I can think is if perhaps using the mic disables the mute button?

alexander12356 commented 6 years ago

Hi. Thanks, it actually disables the mute button.

martindevans commented 6 years ago

Yep, what I'm wondering is do either of these (in a project without Unity) also disable the mute button:

GetComponent<AudioSource>().PlayOneShot(clip);

i.e. Does playing audio with Unity disable the mute button?

Or perhaps:

Microphone.Start("", true, 10, 44100);

i.e. Does activating the microphone in Unity disable the mute button?

Dissonance actually interacts with Unity itself in a very limited way (just recording and playback), so those twm seem like likely candidates.