szabolcsdombi/pyweek-36

Pulse Audio - PulseAudioException: [18] Too large

szabolcsdombi opened this issue · 0 comments

$ python3 run_game.py

Traceback (most recent call last):
  File "/.../run_game.py", line 1569, in <module>
    render()
  File "/.../run_game.py", line 1561, in render
    g.scene.render()
  File "/.../run_game.py", line 1398, in render
    self.world.update()
  File "/.../run_game.py", line 1085, in update
    obj.update(self)
  File "/.../run_game.py", line 1037, in update
    self.space_ship.update(world)
  File "/.../run_game.py", line 996, in update
    speaker.play_beam()
  File "/.../run_game.py", line 159, in play_beam
    self.players.append(self.beam.play())
  File "/.../site-packages/pyglet/media/codecs/base.py", line 230, in play
    player.play()
  File "/.../site-packages/pyglet/media/player.py", line 216, in play
    self._set_playing(True)
  File "/.../site-packages/pyglet/media/player.py", line 165, in _set_playing
    self._create_audio_player()
  File "/.../site-packages/pyglet/media/player.py", line 334, in _create_audio_player
    self._audio_player = audio_driver.create_audio_player(source, self)
  File "/.../site-packages/pyglet/media/drivers/pulse/adaptation.py", line 29, in create_audio_player
    player = PulseAudioPlayer(source, player, self)
  File "/.../site-packages/pyglet/media/drivers/pulse/adaptation.py", line 118, in __init__
    self.stream.connect_playback()
  File "/.../site-packages/pyglet/media/drivers/pulse/interface.py", line 466, in connect_playback
    context.raise_error()
  File "/.../site-packages/pyglet/media/drivers/pulse/interface.py", line 349, in raise_error
    raise PulseAudioException(error, get_ascii_str_or_none(pa.pa_strerror(error)))

pyglet.media.drivers.pulse.interface.PulseAudioException: PulseAudioException: [18] Too large