initState method
Initialise state.
This method creates synthizer, calls synthizer.initialize()
, and
creates synthizerContext and bufferCache.
Implementation
@override
void initState() {
super.initState();
synthizer = Synthizer(filename: widget.synthizerFilename)..initialize();
synthizerContext = synthizer.createContext();
bufferCache = BufferCache(
synthizer: synthizer,
maxSize: widget.bufferCacheMaxSize,
);
}