Subversion Repositories group.NITPanels

Rev

Rev 16 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 22
Line 23... Line 23...
23
        public static extern uint _setDevVolume(uint dev, float volume);
23
        public static extern uint _setDevVolume(uint dev, float volume);
24
 
24
 
25
        public uint deviceCount { get; set; }
25
        public uint deviceCount { get; set; }
26
        public List<string> devices { get; set; }
26
        public List<string> devices { get; set; }
27
 
27
 
-
 
28
        public uint selectedDeviceIndex { get; set; }
-
 
29
 
28
 
30
 
29
        public VolumeControl() {
31
        public VolumeControl() {
30
            uint count = 0;
32
            uint count = 0;
31
            _getDevCount(out count);
33
            _getDevCount(out count);
32
            this.deviceCount = count;
34
            this.deviceCount = count;
Line 43... Line 45...
43
        public String getDeviceName(uint dev) {
45
        public String getDeviceName(uint dev) {
44
            string s = _getDevName(dev);
46
            string s = _getDevName(dev);
45
            return s;
47
            return s;
46
        }
48
        }
47
 
49
 
-
 
50
        public String getDeviceName() {
-
 
51
            return this.getDeviceName(this.selectedDeviceIndex);
-
 
52
        }
-
 
53
 
48
        public float getDeviceVolume(uint dev) {
54
        public float getDeviceVolume(uint dev) {
49
            float volume = 0.0F;
55
            float volume = 0.0F;
50
            _getDevVolume(dev, out volume);
56
            _getDevVolume(dev, out volume);
51
            return volume;
57
            return volume;
52
        }
58
        }
53
 
59
 
-
 
60
        public float getDeviceVolume() {
-
 
61
            return this.getDeviceVolume(this.selectedDeviceIndex);
-
 
62
        }
-
 
63
 
54
        public void setDeviceVolume(uint dev, float volume) {
64
        public void setDeviceVolume(uint dev, float volume) {
55
            _setDevVolume(dev, volume);
65
            _setDevVolume(dev, volume);
56
        }
66
        }
57
 
67
 
-
 
68
        public void setDeviceVolume(float volume) {
-
 
69
            this.setDeviceVolume(this.selectedDeviceIndex, volume);
-
 
70
        }
-
 
71
 
58
    }
72
    }
59
}
73
}