public AudioMetaData GetMetaData()
        {
            AudioMetaData audioMD = new AudioMetaData();

            GetMetaData(audioMD);
            return(audioMD);
        }
 public void GetMetaData(AudioMetaData audioMD)
 {
     using (IMarshaler marsh = audioMD.GetMarshaler(true))
     {
         OpenNIImporter.xnGetAudioMetaData(this.InternalObject, marsh.Native);
     }
 }
            private static IMarshaler MarshalInner(AudioMetaData obj, bool marshalOut)
            {
                IMarshaler inner = ((OutputMetaData)obj).GetMarshaler(marshalOut);

                obj.audio.pOutput = inner.Native;
                return(inner);
            }
 public AudioMetaDataMarshaler(AudioMetaData obj, bool marshalOut) :
     base(obj.audio, marshalOut,
          MarshalInner(obj, marshalOut))
 {
 }
Exemple #5
0
 public void SetData(AudioMetaData audioMD)
 {
     SetData(audioMD, audioMD.FrameID, audioMD.Timestamp);
 }
Exemple #6
0
 public void SetData(AudioMetaData audioMD, UInt32 frameID, UInt64 timestamp)
 {
     SetData(frameID, timestamp, audioMD.DataSize, audioMD.AudioBufferPtr);
 }