Fix windows support and add install requirements.

This commit is contained in:
Matthew Stratford 2020-10-23 21:43:28 +01:00
parent 0b69b3fa7d
commit eb9c46cd8d
2 changed files with 12 additions and 6 deletions

View file

@ -81,10 +81,13 @@ def all_stop():
channel.put("STOP")
status()
for channel in range(3):
channel_to_q.append(multiprocessing.Queue())
channel_from_q.append(multiprocessing.Queue())
channel_to_q[-1].put_nowait("LOAD:test"+str(channel)+".mp3")
channel_p.append(multiprocessing.Process(target=bapsicle, args=(channel, channel_to_q[-1], channel_from_q[-1])).start())
if __name__ == "__main__":
app.run(host='0.0.0.0', port=5000, debug=True)
for channel in range(3):
channel_to_q.append(multiprocessing.Queue())
channel_from_q.append(multiprocessing.Queue())
channel_to_q[-1].put_nowait("LOAD:test"+str(channel)+".mp3")
channel_p.append(multiprocessing.Process(target=bapsicle, args=(channel, channel_to_q[-1], channel_from_q[-1])).start())
app.run(host='0.0.0.0', port=5000, debug=True)

3
requirements.txt Normal file
View file

@ -0,0 +1,3 @@
pygame
flask
mutagen