示例#1
0
        public int Load(string Media, bool Prescan)
        {
            AudioStreams    stream  = new AudioStreams(0);
            PortAudioStream decoder = new PortAudioStream();

            if (decoder.Open(Media) > -1)
            {
                lock (MutexDecoder)
                {
                    _Decoder.Add(decoder);
                    stream.handle = _Count++;
                    stream.file   = Media;
                    _Streams.Add(stream);
                    return(stream.handle);
                }
            }
            return(0);
        }
示例#2
0
        public int Load(string Media, bool Prescan)
        {
            AudioStreams stream = new AudioStreams(0);
            PortAudioStream decoder = new PortAudioStream();

            if (decoder.Open(Media) > -1)
            {
                lock (MutexDecoder)
                {
                    _Decoder.Add(decoder);
                    stream.handle = _Count++;
                    stream.file = Media;
                    _Streams.Add(stream);
                    return stream.handle;
                }

            }
            return 0;
        }