Raffaello / sdl2-hyper-sonic-drivers

'90s sound-cards hardware emulation and files processing.
Apache License 2.0
5 stars 0 forks source link

optmize the if/switch branch code... #9

Open todo[bot] opened 3 years ago

todo[bot] commented 3 years ago

https://github.com/Raffaello/sdl2-sonic-drivers/blob/42a377e397cfe6e70fc779400d5664809ab983d2/sdl2-sonic-drivers/src/hardware/PCSpeaker.cpp#L34-L39


This issue was generated by todo based on a TODO comment in 42a377e397cfe6e70fc779400d5664809ab983d2 when #6 was merged. cc @Raffaello.
Raffaello commented 3 years ago

could be either related to https://github.com/Raffaello/sdl2-sonic-drivers/issues/11

or can use a template class instead.