problem with bluetooth headphone android

wromRed
✭
in Photon Voice
i have set recorder.ReactOnSystemChanges = true , and it's work when i change headphone on window & mac but on android it's can not connect with my bluetooth headphone , i try to get list microphone on android by using this script in documentation but can not get for android , please help
var enumerator = Recorder.PhotonMicrophoneEnumerator;
if (enumerator.IsSupported)
{
for (int i = 0; i < enumerator.Count; i++)
{
Debug.LogFormat("PhotonMicrophone Index={0} ID={1} Name={2}", i, enumerator.IDAtIndex(i),
enumerator.NameAtIndex(i));
microphones.Add(enumerator.NameAtIndex(i));
}
}
var enumerator = Recorder.PhotonMicrophoneEnumerator;
if (enumerator.IsSupported)
{
for (int i = 0; i < enumerator.Count; i++)
{
Debug.LogFormat("PhotonMicrophone Index={0} ID={1} Name={2}", i, enumerator.IDAtIndex(i),
enumerator.NameAtIndex(i));
microphones.Add(enumerator.NameAtIndex(i));
}
}
0
Comments
-
hi @JohnTube i have fix this problem by setting DSP Buffer Size at first start
AudioConfiguration _audioConfig = AudioSettings.GetConfiguration();
_audioConfig.dspBufferSize = 1024;
AudioSettings.Reset(_audioConfig);
and now it can use bluetooth headphone (have test for android and ios ) hopefully it's can help someone have same issue like me0 -
but now i have problem with photon voice for android device have no sound , example when join the room ios device can hear what android device talking but android device can not0
-
Hi @wromRed,
So you switched back to Unity microphone type I guess to make Bluetooth audio work...
The no sound problem is probably due to:
- Android permissions
- clients not on the same room? (see matchmaking checklist)
- some issue with the microphone? hardware or else?
- some playback problem? hardware or else?
Make sure to try on different devices.0