예제 #1
0
 public bool GetWaveInInfo(uint Index, ref TWaveInInfo Info)
 {
     ZPlay.TWaveInInfo_Internal pWaveOutInfo = new ZPlay.TWaveInInfo_Internal();
     if (ZPlay.zplay_GetWaveInInfoW(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.ProductName    = Marshal.PtrToStringUni(pWaveOutInfo.ProductName);
     return(true);
 }
예제 #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;
 }