Exemple #1
0
 private extern static int zplay_GetWaveInInfoW(uint objptr, uint nIndex, ref TWaveInInfo_Internal pWaveOutInfo);
Exemple #2
0
 public bool GetWaveInInfo(uint Index, ref TWaveInInfo Info)
 {
     TWaveInInfo_Internal tmp = new TWaveInInfo_Internal();
     if (zplay_GetWaveInInfoW(objptr, Index, ref tmp) == 0)
     {
         return false;
     }
     Info.Channels = tmp.Channels;
     Info.DriverVersion = tmp.DriverVersion;
     Info.Formats = tmp.Formats;
     Info.ManufacturerID = tmp.ManufacturerID;
     Info.ProductID = tmp.ProductID;
     Info.ProductName = Marshal.PtrToStringUni(tmp.ProductName);
     return true;
 }