Ejemplo n.º 1
0
        private void volumeSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
        {
            BassModelLive.setVolumeToStream((int)volumeSlider.Value);
            //   volumeLabel.Content = Convert.ToInt16(volumeSlider.Value * 1).ToString();
            double startVolume = volumeSlider.Value / 100.0F;

            if (startVolume == 0)
            {
                volumeImages.Source = new BitmapImage(new Uri(String.Format(@"./Resources/Images/volume-low.png"), UriKind.Relative));
            }
            else if (startVolume > 0 && startVolume <= 0.31)
            {
                volumeImages.Source = new BitmapImage(new Uri(String.Format(@"./Resources/Images/volume-medium.png"), UriKind.Relative));
            }
            else if (startVolume > 0.33 && startVolume == 1)
            {
                volumeImages.Source = new BitmapImage(new Uri(String.Format(@"./Resources/Images/volume-high.png"), UriKind.Relative));
            }
        }
Ejemplo n.º 2
0
 private void playButton_Click(object sender, RoutedEventArgs e)
 {
     BassModelLive.PlayStop(playButton);
 }
Ejemplo n.º 3
0
 private void Play()
 {
     BassModelLive.startBassStream(ParserXMLcs.list[rightListBox.SelectedIndex].Url, BassModelLive.Volume);
     DataContext      = BassTag.titleArtist;
     playButton.Style = FindResource("pauseButton") as Style;
 }