Пример #1
0
 public bool GetWaveOutInfo(uint Index, ref TWaveOutInfo Info)
 {
     ZPlay.TWaveOutInfo_Internal pWaveOutInfo = new ZPlay.TWaveOutInfo_Internal();
     if (ZPlay.zplay_GetWaveOutInfoW(this.objptr, Index, ref pWaveOutInfo) == 0)
     {
         return(false);
     }
     Info.Channels       = pWaveOutInfo.Channels;
     Info.DriverVersion  = pWaveOutInfo.DriverVersion;
     Info.Formats        = pWaveOutInfo.Formats;
     Info.ManufacturerID = pWaveOutInfo.ManufacturerID;
     Info.ProductID      = pWaveOutInfo.ProductID;
     Info.Support        = pWaveOutInfo.Support;
     Info.ProductName    = Marshal.PtrToStringUni(pWaveOutInfo.ProductName);
     return(true);
 }
Пример #2
0
 private static extern int zplay_GetWaveOutInfoW(
     uint objptr,
     uint nIndex,
     ref ZPlay.TWaveOutInfo_Internal pWaveOutInfo);