diff options
| author | Juan Linietsky | 2014-05-14 01:22:15 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-05-14 01:22:15 -0300 |
| commit | b324ff7ea584676fcc3292808d7e7ea609982f8e (patch) | |
| tree | b80e9aa0b8f2926a398e25ef904f6229cb3e28dd /tools/editor/plugins/sample_library_editor_plugin.cpp | |
| parent | 45a509282e912d85c46b40974a2deb926be5be42 (diff) | |
| download | godot-b324ff7ea584676fcc3292808d7e7ea609982f8e.tar.gz godot-b324ff7ea584676fcc3292808d7e7ea609982f8e.tar.zst godot-b324ff7ea584676fcc3292808d7e7ea609982f8e.zip | |
Diffstat (limited to 'tools/editor/plugins/sample_library_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/sample_library_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/sample_library_editor_plugin.cpp b/tools/editor/plugins/sample_library_editor_plugin.cpp index 86ac1671a..84143dcd4 100644 --- a/tools/editor/plugins/sample_library_editor_plugin.cpp +++ b/tools/editor/plugins/sample_library_editor_plugin.cpp @@ -262,7 +262,7 @@ void SampleLibraryEditor::_update_library() { ti->set_editable(2,false); ti->set_selectable(2,false); Ref<Sample> s = sample_library->get_sample(E->get()); - ti->set_text(2,String()+/*itos(s->get_length())+" frames ("+String::num(s->get_length()/(float)s->get_mix_rate(),2)+" s), "+*/(s->get_format()==Sample::FORMAT_PCM16?"16 Bits, ":"8 bits, ")+(s->is_stereo()?"Stereo":"Mono")); + ti->set_text(2,String()+/*itos(s->get_length())+" frames ("+String::num(s->get_length()/(float)s->get_mix_rate(),2)+" s), "+*/(s->get_format()==Sample::FORMAT_PCM16?"16 Bits, ":(s->get_format()==Sample::FORMAT_PCM8?"8 bits, ":"IMA-ADPCM,"))+(s->is_stereo()?"Stereo":"Mono")); ti->set_cell_mode(3,TreeItem::CELL_MODE_RANGE); ti->set_range_config(3,-60,24,0.01); |
