paint: audio stubs
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ flags.with_plugins = true;
|
||||
flags.with_kong = true;
|
||||
flags.with_raytrace = true;
|
||||
flags.with_bc7 = true;
|
||||
// flags.with_audio = true;
|
||||
flags.with_audio = false; // platform == "linux";
|
||||
flags.idle_sleep = true;
|
||||
flags.export_version_info = true;
|
||||
flags.export_data_list = platform == "android"; // .apk contents
|
||||
|
||||
@@ -295,6 +295,7 @@ void render_path_preview_commands_preview();
|
||||
void render_path_preview_commands_decal();
|
||||
node_shader_context_t *make_paint_run(material_t *data, material_context_t *matcon);
|
||||
node_shader_context_t *make_mesh_preview_run(material_t *data, material_context_t *matcon);
|
||||
void import_audio_run(char *path);
|
||||
void import_mesh_run(char *path, bool _clear_layers, bool replace_existing);
|
||||
void import_mesh_finish_import(void *_);
|
||||
void import_mesh_make_mesh(raw_mesh_t *mesh);
|
||||
|
||||
@@ -63,6 +63,9 @@ void import_asset_run(char *path, f32 drop_x, f32 drop_y, bool show_box, bool hd
|
||||
g_context->ddirty = 2;
|
||||
}
|
||||
}
|
||||
else if (path_is_audio(path)) {
|
||||
import_audio_run(path);
|
||||
}
|
||||
else if (path_is_lut(path)) {
|
||||
box_preferences_lut_picked(path);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
#include "global.h"
|
||||
|
||||
void import_audio_run(char *path) {
|
||||
|
||||
#ifdef IRON_AUDIO
|
||||
sound_t *s = data_get_sound(path);
|
||||
iron_a1_play_sound(s->sound_, false, 1, false);
|
||||
|
||||
string_array_t *ar = string_split(path, PATH_SEP);
|
||||
char *name = ar->buffer[ar->length - 1];
|
||||
console_info(string("%s %s", tr("Audio imported:"), name));
|
||||
#endif
|
||||
|
||||
}
|
||||
@@ -89,8 +89,8 @@
|
||||
#include "neural_nodes/repeat_node.c"
|
||||
#include "neural_nodes/save_image_node.c"
|
||||
#include "neural_nodes/text_to_image_node.c"
|
||||
#include "neural_nodes/texture_mesh_node.c"
|
||||
#include "neural_nodes/text_to_text_node.c"
|
||||
#include "neural_nodes/texture_mesh_node.c"
|
||||
#include "neural_nodes/tile_image_node.c"
|
||||
#include "neural_nodes/upscale_image_node.c"
|
||||
#include "neural_nodes/vary_image_node.c"
|
||||
@@ -115,6 +115,7 @@
|
||||
#include "history.c"
|
||||
#include "import_arm.c"
|
||||
#include "import_asset.c"
|
||||
#include "import_audio.c"
|
||||
#include "import_blend_material.c"
|
||||
#include "import_blend_mesh.c"
|
||||
#include "import_envmap.c"
|
||||
@@ -160,7 +161,6 @@
|
||||
#include "project.c"
|
||||
#include "render_compass.c"
|
||||
#include "render_envsphere.c"
|
||||
#include "render_pathsphere.c"
|
||||
#include "render_gizmo.c"
|
||||
#include "render_path_base.c"
|
||||
#include "render_path_deferred.c"
|
||||
@@ -169,6 +169,7 @@
|
||||
#include "render_path_preview.c"
|
||||
#include "render_path_raytrace.c"
|
||||
#include "render_path_raytrace_bake.c"
|
||||
#include "render_pathsphere.c"
|
||||
#include "resource.c"
|
||||
#include "slot_brush.c"
|
||||
#include "slot_font.c"
|
||||
|
||||
Reference in New Issue
Block a user