mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2026-02-09 05:24:53 +00:00
[PR #23] Separate out internal code more cleanly #61
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/aaru-dps/RedBookPlayer/pull/23
State: closed
Merged: Yes
This PR does a few major things:
Playercode instead. This is an extension to the previous PR.Playercode into a new class calledSoundOutput. There is only one type of output right now, but either an abstract class or an interface can be created later to make adding different audio handlers possible (fixes #21)Discs,GUI, andHardwareDiscsis the namespace for all supported media, including what used to bePlayableDisc.PlayableDischas been separated into a base class calledOpticalDiscand a specific implementation calledCompactDiscGUIis the namespace for all current UI. The intent is that the existing UI may not be the only way that this player can be interacted with in the future. A better solution when that day comes is to separate out the code into separate libraries, not just namespacesHardwareis for "hardware mimicking" parts of the code. This includes player and sound output code currently. If other pieces come in the future, such as the ability to have multiple outputs or effects, they would likely go here.Aside from the above, the PR also does the following:
HiResTimerclass