private static unsafe int DoMetatext(IntPtr aPtr, uint aVersion, char **aaMetatext) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkInfo1 self = (DvServiceLinnCoUkInfo1)gch.Target; string aMetatext; self.Metatext(aVersion, out aMetatext); *aaMetatext = (char *)Marshal.StringToHGlobalAnsi(aMetatext).ToPointer(); return(0); }
private static unsafe int DoTrack(IntPtr aPtr, uint aVersion, char **aaUri, char **aaMetadata) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkInfo1 self = (DvServiceLinnCoUkInfo1)gch.Target; string aUri; string aMetadata; self.Track(aVersion, out aUri, out aMetadata); *aaUri = (char *)Marshal.StringToHGlobalAnsi(aUri).ToPointer(); *aaMetadata = (char *)Marshal.StringToHGlobalAnsi(aMetadata).ToPointer(); return(0); }
private static unsafe int DoCounters(IntPtr aPtr, uint aVersion, uint *aaTrackCount, uint *aaDetailsCount, uint *aaMetatextCount) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkInfo1 self = (DvServiceLinnCoUkInfo1)gch.Target; uint aTrackCount; uint aDetailsCount; uint aMetatextCount; self.Counters(aVersion, out aTrackCount, out aDetailsCount, out aMetatextCount); *aaTrackCount = aTrackCount; *aaDetailsCount = aDetailsCount; *aaMetatextCount = aMetatextCount; return(0); }
private static unsafe int DoDetails(IntPtr aPtr, uint aVersion, uint *aaDuration, uint *aaBitRate, uint *aaBitDepth, uint *aaSampleRate, int *aaLossless, char **aaCodecName) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkInfo1 self = (DvServiceLinnCoUkInfo1)gch.Target; uint aDuration; uint aBitRate; uint aBitDepth; uint aSampleRate; bool aLossless; string aCodecName; self.Details(aVersion, out aDuration, out aBitRate, out aBitDepth, out aSampleRate, out aLossless, out aCodecName); *aaDuration = aDuration; *aaBitRate = aBitRate; *aaBitDepth = aBitDepth; *aaSampleRate = aSampleRate; *aaLossless = (aLossless ? 1 : 0); *aaCodecName = (char *)Marshal.StringToHGlobalAnsi(aCodecName).ToPointer(); return(0); }