protected virtual void OnPropertyFound(AudioFileStreamProperty propertyID, ref AudioFileStreamPropertyFlag ioFlags) { var p = PropertyFound; if (p != null) { var pf = new PropertyFoundEventArgs(propertyID, ioFlags); p(this, pf); ioFlags = pf.Flags; } }
public PropertyFoundEventArgs(AudioFileStreamProperty propertyID, AudioFileStreamPropertyFlag ioFlags) { Property = propertyID; Flags = ioFlags; }
static void PropertyListener(IntPtr clientData, AudioFileStreamID audioFileStream, AudioFileStreamProperty propertyID, ref AudioFileStreamPropertyFlag ioFlags) { GCHandle handle = GCHandle.FromIntPtr(clientData); var afs = handle.Target as AudioFileStream; afs.OnPropertyFound(propertyID, ref ioFlags); }