BananaHemic / Mumble-Unity

Performant Mumble Client For Unity3D
MIT License
79 stars 30 forks source link

Please help!. I can not hear anything #17

Closed hdv0112 closed 5 years ago

hdv0112 commented 6 years ago

Please help me. In the Script: UdpPacketReader.cs Function: public byte[] ReadBytes(int length) { byte[] buffer = new byte[length]; var read = _inner.Read(buffer, 0, length); if (length != read) return null; return buffer; } Always return null. Because "read = _inner.Read(buffer, 0, length)" always return 101, with every value "length". Thanks so much for your help.

BananaHemic commented 6 years ago

That's interesting because I haven't experienced any issues there. Could you tell me a bit more about how you're using this asset? For instance, are you receiving audio from Mumble-Unity, or a different Mumble client?

hdv0112 commented 6 years ago

Thanks for your reply. I use Plumble - Mumble VOIP App android to send voice, and use Mumble-Unity to listen. The audio data is transmitted, but can not be read and converted to audio, because the problem in above Scripts. Do you think the problem from Plumble - Mumble VOIP App or above Script. Thanks so much!

BananaHemic commented 6 years ago

I use Plumble with this asset, so my guess is that there's a configuration issue somewhere.

Do you know if you're streaming Opus or Speex audio? This asset doesn't support Speex because it's a fairly outdated client. If you are able to change settings for the Murmur server, you can force it to only use Opus and not Speex anywhere.

If you are using Opus, can you tell me what the value of "size" is before ReadBytes is called?

hdv0112 commented 6 years ago

Hi BananaHemic, now I used Plumple with this asset. And I have heard the sound, but the signal is just noise. Ex: ss..sss..ssss

BananaHemic commented 6 years ago

Did you confirm that you're using Opus? Do you still get noise when using local loopback (It's a setting in MumbleTester)? Did you change anything to make noise come through as opposed to nothing?

hdv0112 commented 6 years ago

Hi BananaHemic. I'm sure using Opus, using local loopback. Do I need to configure anything? Thanks

BananaHemic commented 6 years ago

The asset should work out of the box without any configuring other than enforcing Opus everywhere.

hdv0112 commented 6 years ago

Thank you very much for the great help from you. After all day adjusting, I have successfully build it. Thanks so much again!!!

BananaHemic commented 6 years ago

No problem!

Could you please say what the issue was? I just want to help other people who may be similarly stuck