60 |
|
|
61 |
import org.jsampler.task.Audio; |
import org.jsampler.task.Audio; |
62 |
|
|
63 |
|
import org.jsampler.view.JSViewConfig; |
64 |
|
import org.jsampler.view.SessionViewConfig.DeviceConfig; |
65 |
|
|
66 |
import org.jsampler.view.fantasia.basic.PixmapButton; |
import org.jsampler.view.fantasia.basic.PixmapButton; |
67 |
import org.jsampler.view.fantasia.basic.PixmapPane; |
import org.jsampler.view.fantasia.basic.PixmapPane; |
68 |
import org.jsampler.view.std.JSNewAudioDeviceDlg; |
import org.jsampler.view.std.JSNewAudioDeviceDlg; |
100 |
} |
} |
101 |
} |
} |
102 |
|
|
103 |
|
public int |
104 |
|
getDevicePaneCount() { return listModel.size(); } |
105 |
|
|
106 |
|
public AudioDevicePane |
107 |
|
getDevicePaneAt(int index) { return listModel.get(index); } |
108 |
|
|
109 |
private void |
private void |
110 |
addDevice(AudioDeviceModel model) { |
addDevice(AudioDeviceModel model) { |
111 |
for(int i = 0; i < listModel.getSize(); i++) { |
for(int i = 0; i < listModel.getSize(); i++) { |
115 |
} |
} |
116 |
} |
} |
117 |
|
|
118 |
listModel.add(new AudioDevicePane(model)); |
AudioDevicePane dev = new AudioDevicePane(model); |
119 |
|
DeviceConfig config = null; |
120 |
|
JSViewConfig viewConfig = CC.getViewConfig(); |
121 |
|
if(viewConfig != null && viewConfig.getSessionViewConfig() != null) { |
122 |
|
config = viewConfig.getSessionViewConfig().pollAudioDeviceConfig(); |
123 |
|
} |
124 |
|
|
125 |
|
if(config != null && config.expanded) dev.showOptionsPane(true); |
126 |
|
|
127 |
|
listModel.add(dev); |
128 |
} |
} |
129 |
|
|
130 |
private void |
private void |