Beispiel #1
0
 public static Offset <AudioParameter> CreateAudioParameter(FlatBufferBuilder builder,
                                                            uint parameterID = 0,
                                                            float value      = 0.0f,
                                                            uint time_ms     = 0,
                                                            byte curveType   = 0)
 {
     builder.StartObject(4);
     AudioParameter.AddTimeMs(builder, time_ms);
     AudioParameter.AddValue(builder, value);
     AudioParameter.AddParameterID(builder, parameterID);
     AudioParameter.AddCurveType(builder, curveType);
     return(AudioParameter.EndAudioParameter(builder));
 }
Beispiel #2
0
 public static AudioParameter GetRootAsAudioParameter(ByteBuffer _bb, AudioParameter obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }