public AudioPlaybackBase(DataSource DataSource, Time OffsetCorrection) { _setup = SetupStream; _setSpeed = SetPlaybackSpeed; _start = StartStream; _pause = PauseStream; _stop = StopStream; _pointer = CreateAudioPlayback(DataSource.Pointer, OffsetCorrection, _setup, _setSpeed, _start, _pause, _stop); }
private static extern IntPtr CreateAudioPlayback(IntPtr DataSourcePointer, Time OffsetCorrection, SetupStreamCB SetupCB, SetPlaybackSpeedCB SetSpeedCB, ChangeStateCB StartCB, ChangeStateCB PauseCB, ChangeStateCB StopCB);