Esempio n. 1
0
        public async Task<bool> LoadInformation(SingleVideoSearchResult result)
        {
            Year = (uint)DateTime.Parse(result.data.uploaded).Year;
            Title = result.data.title;
            Artist = result.data.uploader;
            Uploader = result.data.uploader; //Because the user can change the artist

            using (var soundSource = await GetSoundSource())
            {
                kHz = soundSource.WaveFormat.SampleRate / 1000;
                SetDuration(soundSource.GetLength());
            }
            return true;
        }