cronokirby / alchemy

A discord library for Elixir
MIT License
151 stars 34 forks source link

Voice: custom stream support #40

Closed nhooyr closed 7 years ago

nhooyr commented 7 years ago

Presently, alchemy only plays audio from URL's supported by youtube-dl or from a file.

It should be possible to provide a custom stream to alchemy and have it play audio from that. I'm not sure what the API should look like though.

cronokirby commented 7 years ago

https://github.com/cronokirby/alchemy/commit/769cd07c0f7ad3400c4dd27956c5c65b25775972 fixes this. play_iodata/3 now takes in either iodata, or a stream of iodata.