Example #1
0
 internal void __MarshalFrom(ref WaveFormat.__Native @ref)
 {
     this.waveFormatTag         = @ref.pcmWaveFormat.waveFormatTag;
     this.channels              = @ref.pcmWaveFormat.channels;
     this.sampleRate            = @ref.pcmWaveFormat.sampleRate;
     this.averageBytesPerSecond = @ref.pcmWaveFormat.averageBytesPerSecond;
     this.blockAlign            = @ref.pcmWaveFormat.blockAlign;
     this.bitsPerSample         = @ref.pcmWaveFormat.bitsPerSample;
     this.extraSize             = @ref.extraSize;
 }
Example #2
0
 internal void __MarshalTo(ref WaveFormat.__Native @ref)
 {
     @ref.pcmWaveFormat.waveFormatTag         = this.waveFormatTag;
     @ref.pcmWaveFormat.channels              = this.channels;
     @ref.pcmWaveFormat.sampleRate            = this.sampleRate;
     @ref.pcmWaveFormat.averageBytesPerSecond = this.averageBytesPerSecond;
     @ref.pcmWaveFormat.blockAlign            = this.blockAlign;
     @ref.pcmWaveFormat.bitsPerSample         = this.bitsPerSample;
     @ref.extraSize = this.extraSize;
 }
Example #3
0
 public virtual void Serialize(BinarySerializer serializer)
 {
     WaveFormat.__Native @ref = new WaveFormat.__Native();
     if (serializer.Mode == SerializerMode.Read)
     {
         serializer.Serialize <WaveFormat.__Native>(ref @ref, SerializeFlags.Normal);
         this.__MarshalFrom(ref @ref);
     }
     else
     {
         this.__MarshalTo(ref @ref);
         serializer.Serialize <WaveFormat.__Native>(ref @ref, SerializeFlags.Normal);
     }
 }
Example #4
0
 public virtual void Serialize(BinarySerializer serializer)
 {
     WaveFormat.__Native @ref = new WaveFormat.__Native();
       if (serializer.Mode == SerializerMode.Read)
       {
     serializer.Serialize<WaveFormat.__Native>(ref @ref, SerializeFlags.Normal);
     this.__MarshalFrom(ref @ref);
       }
       else
       {
     this.__MarshalTo(ref @ref);
     serializer.Serialize<WaveFormat.__Native>(ref @ref, SerializeFlags.Normal);
       }
 }
Example #5
0
 internal void __MarshalFree(ref WaveFormat.__Native @ref)
 {
     @ref.__MarshalFree();
 }