Ejemplo n.º 1
0
 public void LoadVorbisBuffer(OggStreamBuffer ovb, LoopCommentExtension loop)
 {
     loop_start  = loop.Start * 4;
     loop_length = loop.Length * 4;
     loop_end    = loop.End * 4;
     total       = loop.Total;
 }
Ejemplo n.º 2
0
        public void SelectFile(string file)
        {
            var hist = GetPlayHistory();

            if (!hist.Contains(file))
            {
                var ifs = IsolatedStorageFile.GetUserStoreForApplication();
                using (var sw = new StreamWriter(ifs.OpenFile("history.txt", FileMode.Create))) {
                    sw.WriteLine(file);
                    foreach (var h in hist.Take(Math.Min(9, hist.Length)))
                    {
                        sw.WriteLine(h);
                    }
                }
            }

            Stream input = File.OpenRead(file);

            vorbis_buffer = new OggStreamBuffer(input);
            loop          = new LoopCommentExtension(vorbis_buffer);
            InitializeVorbisBuffer();
        }
Ejemplo n.º 3
0
 public void LoadVorbisBuffer(OggStreamBuffer ovb, LoopCommentExtension loop)
 {
     loop_start = loop.Start * 4;
     loop_length = loop.Length * 4;
     loop_end = loop.End * 4;
     total = loop.Total;
 }
Ejemplo n.º 4
0
        public void SelectFile(string file)
        {
            var hist = GetPlayHistory ();
            if (!hist.Contains (file)) {
                var ifs = IsolatedStorageFile.GetUserStoreForApplication ();
                using (var sw = new StreamWriter (ifs.OpenFile ("history.txt", FileMode.Create))) {
                    sw.WriteLine(file);
                    foreach (var h in hist.Take (Math.Min (9, hist.Length)))
                        sw.WriteLine (h);
                }
            }

            Stream input = File.OpenRead (file);
            vorbis_buffer = new OggStreamBuffer (input);
            loop = new LoopCommentExtension (vorbis_buffer);
            InitializeVorbisBuffer ();
        }