Skip to content

Instantly share code, notes, and snippets.

@pauleveritt
Last active June 22, 2018 16:21
Show Gist options
  • Save pauleveritt/15c3fc625a5fc9b477b48f9c883d459a to your computer and use it in GitHub Desktop.
Save pauleveritt/15c3fc625a5fc9b477b48f9c883d459a to your computer and use it in GitHub Desktop.
pyglet-ffmpeg exception
$ .venv/bin/python ./main.py
Traceback (most recent call last):
File "./main.py", line 12, in <module>
player = sound.play()
File "/private/tmp/f2/.venv/src/pyglet/pyglet/media/codecs/base.py", line 273, in play
player.play()
File "/private/tmp/f2/.venv/src/pyglet/pyglet/media/player.py", line 238, in play
self._set_playing(True)
File "/private/tmp/f2/.venv/src/pyglet/pyglet/media/player.py", line 190, in _set_playing
self._create_audio_player()
File "/private/tmp/f2/.venv/src/pyglet/pyglet/media/player.py", line 332, in _create_audio_player
self._audio_player = audio_driver.create_audio_player(_playlist, self)
File "/private/tmp/f2/.venv/src/pyglet/pyglet/media/drivers/openal/adaptation.py", line 69, in create_audio_player
return OpenALAudioPlayer(self, playlist, player)
File "/private/tmp/f2/.venv/src/pyglet/pyglet/media/drivers/openal/adaptation.py", line 166, in __init__
self.refill(self.ideal_buffer_size)
File "/private/tmp/f2/.venv/src/pyglet/pyglet/media/drivers/openal/adaptation.py", line 295, in refill
self._queue_audio_data(audio_data, length)
File "/private/tmp/f2/.venv/src/pyglet/pyglet/media/drivers/openal/adaptation.py", line 325, in _queue_audio_data
buf.data(audio_data, self.playlist.audio_format, length)
File "/private/tmp/f2/.venv/src/pyglet/pyglet/media/drivers/openal/interface.py", line 508, in data
self._check_error('Failed to add data to buffer.')
File "/private/tmp/f2/.venv/src/pyglet/pyglet/media/drivers/openal/interface.py", line 79, in _check_error
error_string=str(error_string.value))
pyglet.media.drivers.openal.interface.OpenALException: OpenAL Exception [40963: b'Invalid Value']: Failed to add data to buffer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment