+void
+EngineControl::set_nperiods_popdown_strings ()
+{
+ DEBUG_ECONTROL ("set_nperiods_popdown_strings");
+ boost::shared_ptr<ARDOUR::AudioBackend> backend = ARDOUR::AudioEngine::instance()->current_backend();
+ vector<uint32_t> np;
+ vector<string> s;
+
+ if (backend->can_set_period_size()) {
+ np = backend->available_period_sizes (get_driver());
+ }
+
+ for (vector<uint32_t>::const_iterator x = np.begin(); x != np.end(); ++x) {
+ s.push_back (nperiods_as_string (*x));
+ }
+
+ set_popdown_strings (nperiods_combo, s);
+
+ if (!s.empty()) {
+ set_active_text_if_present (nperiods_combo, nperiods_as_string (backend->period_size())); // XXX
+ }
+
+ update_sensitivity ();
+}
+