muammar / mkchromecast

Cast macOS and Linux Audio/Video to your Google Cast and Sonos Devices
http://mkchromecast.com
Other
2.22k stars 140 forks source link

Simplifies messages.py and its dependencies as a first step in simplifying audio.py and node.py #435

Closed xsdg closed 11 months ago

xsdg commented 11 months ago

This is also coupled with a refactor of sample rate quantization code from both audio.py and node.py into utils.py, which ended up fixing a number of bugs, making the logic clearer and easier to follow, and reducing a significant mount of code duplication.

In future, messages.py will likely go away, and we may end up creating a new audio_utils.py module for the sample rate quantization function and other related utilities.

This is part of #434