AresValley / Artemis

Radio Signals Recognition Manual
https://aresvalley.github.io/Artemis/
GNU General Public License v3.0
338 stars 36 forks source link

added mixer.init to avoid error #11

Closed ohleck closed 4 years ago

ohleck commented 4 years ago

Error LOG : Traceback (most recent call last): File "/home/XXXXX/Artemis/src/audio_player.py", line 106, in _update_bar pos = mixer.music.get_pos() pygame.error: mixer not initialized Abandon

alessandro90 commented 4 years ago

Hi ohleck, thank you for pointing out the bug. However the real problem was on the value of the _paused variable in audio_player.py. So, although the proposed commit fix the problem, when you press play on a different sample, the audio does not start. You need to press play 2 times. Also in case you find other bugs, please open an issue with a brief description (I did so for this bug, issue #12 ), so that everyone can see the problem. I already pushed a fix on master, so the issue is closed.