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); }
public bool GetWaveOutInfo(uint Index, ref TWaveOutInfo Info) { TWaveOutInfo_Internal tmp = new TWaveOutInfo_Internal(); if (zplay_GetWaveOutInfoW(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.Support = tmp.Support; Info.ProductName = Marshal.PtrToStringUni(tmp.ProductName); return true; }