public override void InitInternals() { this._BIsEnabled = Marshal.GetDelegateForFunctionPointer <ISteamMusic.FBIsEnabled>(Marshal.ReadIntPtr(this.VTable, 0)); this._BIsPlaying = Marshal.GetDelegateForFunctionPointer <ISteamMusic.FBIsPlaying>(Marshal.ReadIntPtr(this.VTable, 8)); this._GetPlaybackStatus = Marshal.GetDelegateForFunctionPointer <ISteamMusic.FGetPlaybackStatus>(Marshal.ReadIntPtr(this.VTable, 16)); this._Play = Marshal.GetDelegateForFunctionPointer <ISteamMusic.FPlay>(Marshal.ReadIntPtr(this.VTable, 24)); this._Pause = Marshal.GetDelegateForFunctionPointer <ISteamMusic.FPause>(Marshal.ReadIntPtr(this.VTable, 32)); this._PlayPrevious = Marshal.GetDelegateForFunctionPointer <ISteamMusic.FPlayPrevious>(Marshal.ReadIntPtr(this.VTable, 40)); this._PlayNext = Marshal.GetDelegateForFunctionPointer <ISteamMusic.FPlayNext>(Marshal.ReadIntPtr(this.VTable, 48)); this._SetVolume = Marshal.GetDelegateForFunctionPointer <ISteamMusic.FSetVolume>(Marshal.ReadIntPtr(this.VTable, 56)); this._GetVolume = Marshal.GetDelegateForFunctionPointer <ISteamMusic.FGetVolume>(Marshal.ReadIntPtr(this.VTable, 64)); }
internal override void Shutdown() { base.Shutdown(); this._BIsEnabled = null; this._BIsPlaying = null; this._GetPlaybackStatus = null; this._Play = null; this._Pause = null; this._PlayPrevious = null; this._PlayNext = null; this._SetVolume = null; this._GetVolume = null; }