Ejemplo n.º 1
0
        private void setUpSessions()
        {
            sessions = new ObservableCollection <VolumeViewModel>();

            simpleaudioNET.Interface audio         = new simpleaudioNET.Interface();
            simpleaudioNET.Device    defaultdevice = audio.getDefaultDevice();
            device = new VolumeViewModel(defaultdevice);

            iteratorNET.Iterator <Session> it = defaultdevice.sessionIterator();
            while (it.hasNext())
            {
                sessions.Add(new VolumeViewModel(it.next()));
            }
        }
Ejemplo n.º 2
0
 public VolumeViewModel(simpleaudioNET.Device device)
 {
     this.device  = device;
     this.session = null;
 }