public bool HandleObject(T obj)
        {
            if (_queue.Count >= 1000)
            {
                LOG.Debug("Playback buffer is full, sending playback buffer high event");
                _currentBufState = PlaybackBufferStateEvent.State.High;

                PushEvent(new PlaybackBufferStateEvent()
                {
                    BufferState = _currentBufState
                });
            }

            _queue.Add(obj);

            return(true);
        }
        private void CheckIfQueueIsLow()
        {
            lock (StateLock)
            {
                if ((_currentBufState != PlaybackBufferStateEvent.State.Low) && (_queue.Count <= 400))
                {
                    LOG.Debug($"Playback buffer is low, sending buffer low event.");
                    _currentBufState = PlaybackBufferStateEvent.State.Low;

                    PushEvent(new PlaybackBufferStateEvent()
                    {
                        BufferState = _currentBufState
                    });
                }
                else if (_queue.Count > 400)
                {
                    _currentBufState = PlaybackBufferStateEvent.State.High;
                }
            }
        }