G.711 is a standard for encoding waveform audio. The standard comes in two flavors, MuLaw, and ALaw. This class 'G711AudioEncoder' serves as an abstract base for the two variants of the standard. As all the implementation is based on lookups into arrays, the sublcassers only need to implement the lookup array. The base class will perform the data conversions.