Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnection error if voice from client to server is active #138

Open
marcomac01 opened this issue Dec 16, 2023 · 0 comments
Open

Reconnection error if voice from client to server is active #138

marcomac01 opened this issue Dec 16, 2023 · 0 comments

Comments

@marcomac01
Copy link

Hello. Whenever a disconnection occurs (i close murmur to simulate connection loss) if i try to send a sound to the server i get this error.

Traceback (most recent call last):
  File "/Users/marco/Desktop/clients/audio-only_client.py", line 47, in <module>
    mumble.sound_output.add_sound(data)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymumble_py3/soundoutput.py", line 161, in add_sound
    samples = int(self.encoder_framesize * PYMUMBLE_SAMPLERATE * 2 * self.channels)  # number of samples in an encoder frame
                  ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

the code i am running is the example audio-only_client.py. the only change i made is enabling the reconnection via reconnect=True in the mumble object declaration
if i comment the line mumble.sound_output.add_sound(data) it reconnects and i can listen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant