return 4;
}
+std::string
+ARDOUR::LuaAPI::ascii_dtostr (const double d)
+{
+ gchar buf[G_ASCII_DTOSTR_BUF_SIZE];
+ g_ascii_dtostr (buf, sizeof(buf), d);
+ return std::string (buf);
+}
+
int
ARDOUR::LuaAPI::color_to_rgba (lua_State *L)
{
.addCFunction ("plugin_automation", ARDOUR::LuaAPI::plugin_automation)
.addCFunction ("hsla_to_rgba", ARDOUR::LuaAPI::hsla_to_rgba)
.addCFunction ("color_to_rgba", ARDOUR::LuaAPI::color_to_rgba)
+ .addFunction ("ascii_dtostr", ARDOUR::LuaAPI::ascii_dtostr)
.addFunction ("usleep", Glib::usleep)
.addFunction ("monotonic_time", ::g_get_monotonic_time)
.addCFunction ("build_filename", ARDOUR::LuaAPI::build_filename)