private extern static int zplay_GetWaveOutInfoW(uint objptr, uint nIndex, ref TWaveOutInfo_Internal pWaveOutInfo);
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; }