serializeBytes method
Implementation
@override
ByteData serializeBytes(int sampleRate, double beat, int correctionFrames) {
final data = super.serializeBytes(sampleRate, beat, correctionFrames);
data.setFloat32(SCHEDULER_EVENT_DATA_OFFSET, volume!, Endian.host);
return data;
}