Coder Social home page Coder Social logo

Output Stream recording about node-mumble HOT 10 CLOSED

rantanen avatar rantanen commented on July 17, 2024
Output Stream recording

from node-mumble.

Comments (10)

Rantanen avatar Rantanen commented on July 17, 2024

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.

Prior99 avatar Prior99 commented on July 17, 2024

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.

clux avatar clux commented on July 17, 2024

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.

Prior99 avatar Prior99 commented on July 17, 2024

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.

clux avatar clux commented on July 17, 2024

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.

clux avatar clux commented on July 17, 2024

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.

clux avatar clux commented on July 17, 2024

Interesting solution:

//var type = ( data[0] & 0xe0 ) >> 5;
var type = 5;

This fixed it for me.

from node-mumble.

Rantanen avatar Rantanen commented on July 17, 2024

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.

Rantanen avatar Rantanen commented on July 17, 2024

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.

clux avatar clux commented on July 17, 2024

Hehe, yeah that makes sense. Thanks for the fast publish :)

from node-mumble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.