bastibe / SoundCard

A Pure-Python Real-Time Audio Library
https://soundcard.readthedocs.io
BSD 3-Clause "New" or "Revised" License
680 stars 69 forks source link

fix utf-16 decode error #87

Closed zhqu1148980644 closed 4 years ago

zhqu1148980644 commented 4 years ago

The original codes will raise error when facing a device with chinese name. More specifically,chr(negative number) will cause ValueError: chr() arg not in range(0x110000)

bastibe commented 4 years ago

Thank you for your pull request.

I see you changed the import order. Was that done for a particular reason?

zhqu1148980644 commented 4 years ago

I thought it might be more reasonable to put third-party packages behind.

bastibe commented 4 years ago

OK, thank you very much!