code: func (b *PCMBuffer) SwitchPrimaryType(t DataFormat) {
  	if b == nil || t == b.DataType {
  		return
  	}
  	switch t {
  	case Integer:
  		b.Ints = b.AsInts()
  		b.Floats = nil
  		b.Bytes = nil
  	case Float:
  		b.Floats = b.AsFloat64s()
  		b.Ints = nil
  		b.Bytes = nil
  	case Byte:
  		// TODO: get as bytes
  		b.Floats = nil
  		b.Ints = nil
  	}
  	b.DataType = t
  }
docs: // SwitchPrimaryType is a convenience method to switch the primary data type.
  // Use this if you process/swap a different type than the original type.