Comments (10)
I don't have problem with this. Make sure you're using up to date version though - there was a problem few weeks ago where the user-specific output streams weren't working. This was fixed two weeks ago in f689be7 but the NPM version was a bit later I think.
from node-mumble.
I can also confirm that the above code works, I am using a smiliar setup. Make sure this is not a problem related to permission in your server.
from node-mumble.
That is weird. I am on the latest version. It is the recording stage to test.pcm
that fails. The file only gets endless blocks of four zeroes written to it, and the 'voice' event on connection seems to never trigger.
I'll request a look at the server config later, it's not my server, but I mean, I can transmit and join using key and cert, what could be different for listening?
from node-mumble.
Please try on 'ready'. On 'initialized' the connection was initialized but the library is still waiting for the initial status of the server.
from node-mumble.
No, that's not doing it either. I'll try to do some debugging though. Added a console.log('got udttunnel data', data)
to the beginning of MumbleConnection.prototype._onUDPTunnel
and the buffer is definitely receiving my data properly.
from node-mumble.
Right. The type
in _onUDPTunnel
is 0
which is not one of the valid ones in MumbleConnection.codecValues
so the packet is ignored. Not sure how that is zero, given that the valid ones are 4
or 5
, but that is at least the problem.
from node-mumble.
Interesting solution:
//var type = ( data[0] & 0xe0 ) >> 5;
var type = 5;
This fixed it for me.
from node-mumble.
Ironically this is actually the "correct" solution - correct as far as the codecs go anyway. I've got no idea why the Celt codec is set to be number 5 on line 69:
MumbleConnection.codec = { Celt: 5, Opus: 4 }
The correct value for Celt would actually be 0...
from node-mumble.
Fixed in a2f1a15
Thanks for reporting it! I guess the rest of us were using Opus which works. The exact codec used is kind of hidden by the implementation which makes it nice to use but causes weird issues when the codecs differ. :)
from node-mumble.
Hehe, yeah that makes sense. Thanks for the fast publish :)
from node-mumble.
Related Issues (20)
- Trouble authenticating user HOT 2
- Events in the client HOT 7
- Register user HOT 9
- Deaf state not updated on user
- user.inputStream() fails with TypeError: cannot set whisperId of undefined HOT 2
- Not receiving private message event? HOT 4
- Is this project dead? HOT 3
- Update dependencies HOT 3
- BIZZARE WEIRD ERRORS UPON INSTALLATION HOT 4
- Play audio from channel (server) HOT 4
- Not recording from subgroup. HOT 1
- npm install not working anymore HOT 3
- Positional Audio HOT 1
- Install error 886 verbose stack Error: [email protected] install: `node-gyp rebuild` HOT 2
- v8 warning for native addon on node v6+ HOT 4
- How do I set the comment for the connected user? HOT 5
- Fatal error in api.cc HOT 6
- Can't run sendMessage function from outside mumble.connect HOT 2
- Windows 10 disconnects after a few seconds HOT 1
- Is there an example how to play/stream audio to Web Audio API ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-mumble.