Ejemplo n.º 1
0
        public Track Get(string name)
        {
            if (IsDisposed)
            {
                throw new ObjectDisposedException($"Cannot retrieve items for an already disposed {nameof(TrackStore)}");
            }

            if (string.IsNullOrEmpty(name))
            {
                return(null);
            }

            var dataStream = store.GetStream(name);

            if (dataStream == null)
            {
                return(null);
            }

            TrackBass trackBass = new TrackBass(dataStream);

            mixer.Add(trackBass);
            AddItem(trackBass);

            return(trackBass);
        }
Ejemplo n.º 2
0
        public Track Get(string name)
        {
            TrackBass track = new TrackBass(store.GetStream(name));

            AddItem(track);
            return(track);
        }
Ejemplo n.º 3
0
        public Track Get(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                return(null);
            }

            TrackBass track = new TrackBass(store.GetStream(name));

            AddItem(track);
            return(track);
        }
Ejemplo n.º 4
0
        public Track Get(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                return(null);
            }

            var dataStream = store.GetStream(name);

            if (dataStream == null)
            {
                return(null);
            }

            Track track = new TrackBass(dataStream);

            AddItem(track);
            return(track);
        }