splash screen fix from nedko ; fix cleanup's failure to correctly locate files listed in XML nodes ; Route::set_name() doesn't need to be virtual ; minor text alterations
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5268 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a4b20f6c46
commit
3488b2fe09
|
@ -401,11 +401,9 @@ env.Append (BUILDERS = {'Tarball' : tarball_bld})
|
|||
|
||||
def pushEnvironment(context):
|
||||
if os.environ.has_key('PATH'):
|
||||
context.Append(PATH = os.environ['PATH'])
|
||||
context['ENV']['PATH'] = os.environ['PATH']
|
||||
|
||||
if os.environ.has_key('PKG_CONFIG_PATH'):
|
||||
context.Append(PKG_CONFIG_PATH = os.environ['PKG_CONFIG_PATH'])
|
||||
context['ENV']['PKG_CONFIG_PATH'] = os.environ['PKG_CONFIG_PATH']
|
||||
|
||||
if os.environ.has_key('CC'):
|
||||
|
@ -434,7 +432,7 @@ deps = \
|
|||
'raptor' : '1.4.2',
|
||||
'lrdf' : '0.4.0',
|
||||
'jack' : '0.109.0',
|
||||
'libgnomecanvas-2.0' : '2.0',
|
||||
'libgnomecanvas-2.0' : '2.0'
|
||||
}
|
||||
|
||||
def DependenciesRequiredMessage():
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<Option name="plugins-stop-with-transport" value="no"/>
|
||||
<Option name="no-sw-monitoring" value="no"/>
|
||||
<Option name="stop-recording-on-xrun" value="no"/>
|
||||
<Option name="create-xrun-marker" value="yes"/>
|
||||
<Option name="create-xrun-marker" value="yes"/>
|
||||
<Option name="stop-at-session-end" value="no"/>
|
||||
<Option name="auto-xfade" value="yes"/>
|
||||
<Option name="crossfades-active" value="1"/>
|
||||
|
@ -38,9 +38,9 @@
|
|||
<Option name="periodic-safety-backups" value="1"/>
|
||||
<Option name="periodic-safety-backup-interval" value="120"/>
|
||||
<Option name="show-track-meters" value="1"/>
|
||||
<Option name="default-narrow_ms" value="0"/>
|
||||
<Option name="default-narrow_ms" value="0"/>
|
||||
<Option name="smpte-format" value="6"/>
|
||||
<Option name="font-scale" value="102400"/>
|
||||
<Option name="font-scale" value="102400"/>
|
||||
</Config>
|
||||
<extra>
|
||||
<RulerVisibility smpte="yes" bbt="yes" frames="no" minsec="no" tempo="yes" meter="yes" marker="yes" rangemarker="no" transportmarker="yes" cdmarker="no"/>
|
||||
|
|
|
@ -66,7 +66,7 @@ void
|
|||
Splash::on_realize ()
|
||||
{
|
||||
Window::on_realize ();
|
||||
get_window()->set_decorations (Gdk::WMDecoration(0));
|
||||
get_window()->set_override_redirect(true);
|
||||
layout->set_font_description (get_style()->get_font());
|
||||
}
|
||||
|
||||
|
|
|
@ -125,6 +125,9 @@ class AudioFileSource : public AudioSource {
|
|||
|
||||
bool can_be_analysed() const { return _length > 0; }
|
||||
|
||||
static bool find (Glib::ustring path, bool must_exist, bool embedded, bool& is_new, uint16_t& chan,
|
||||
Glib::ustring& found_path, std::string& found_name);
|
||||
|
||||
protected:
|
||||
|
||||
/* constructor to be called for existing external-to-session files */
|
||||
|
@ -164,12 +167,11 @@ class AudioFileSource : public AudioSource {
|
|||
virtual void set_timeline_position (int64_t pos);
|
||||
virtual void set_header_timeline_position () = 0;
|
||||
|
||||
bool find (Glib::ustring& path, bool must_exist, bool& is_new, uint16_t& chan);
|
||||
bool removable() const;
|
||||
bool writable() const { return _flags & Writable; }
|
||||
|
||||
static Sample* get_interleave_buffer (nframes_t size);
|
||||
|
||||
|
||||
private:
|
||||
Glib::ustring old_peak_path (Glib::ustring audio_path);
|
||||
Glib::ustring broken_peak_path (Glib::ustring audio_path);
|
||||
|
|
|
@ -159,7 +159,7 @@ CONFIG_VARIABLE (bool, periodic_safety_backups, "periodic-safety-backups", true)
|
|||
CONFIG_VARIABLE (uint32_t, periodic_safety_backup_interval, "periodic-safety-backup-interval", 120)
|
||||
CONFIG_VARIABLE (float, automation_interval, "automation-interval", 50)
|
||||
CONFIG_VARIABLE (bool, sync_all_route_ordering, "sync-all-route-ordering", true)
|
||||
CONFIG_VARIABLE (bool, only_copy_imported_files, "only-copy-imported-files", true)
|
||||
CONFIG_VARIABLE (bool, only_copy_imported_files, "only-copy-imported-files", false)
|
||||
CONFIG_VARIABLE (bool, new_plugins_active, "new-plugins-active", true)
|
||||
CONFIG_VARIABLE (std::string, keyboard_layout, "keyboard-layout", "ansi")
|
||||
CONFIG_VARIABLE (std::string, default_bindings, "default-bindings", "ardour")
|
||||
|
|
|
@ -33,7 +33,7 @@ class AudioEngine;
|
|||
class Port : public sigc::trackable {
|
||||
public:
|
||||
virtual ~Port() {
|
||||
// Port is an opage pointer, so should be be desallocated ??
|
||||
// Port is an opaque pointer, so should be be deallocated ??
|
||||
}
|
||||
|
||||
static nframes_t port_offset() { return _port_offset; }
|
||||
|
@ -179,7 +179,7 @@ class Port : public sigc::trackable {
|
|||
Port (jack_port_t *port);
|
||||
void reset ();
|
||||
|
||||
/* engine isn't supposed to below here */
|
||||
/* engine isn't supposed to use anything below here */
|
||||
|
||||
/* cache these 3 from JACK so that we can
|
||||
access them for reconnecting.
|
||||
|
|
|
@ -79,7 +79,7 @@ class Route : public IO
|
|||
std::string comment() { return _comment; }
|
||||
void set_comment (std::string str, void *src);
|
||||
|
||||
int set_name (string str, void *src);
|
||||
virtual int set_name (string str, void *src);
|
||||
|
||||
long order_key (const char* name) const;
|
||||
void set_order_key (const char* name, long n);
|
||||
|
|
|
@ -154,7 +154,7 @@ AudioFileSource::init (ustring pathstr, bool must_exist)
|
|||
timeline_position = 0;
|
||||
_peaks_built = false;
|
||||
|
||||
if (!find (pathstr, must_exist, file_is_new, _channel)) {
|
||||
if (!find (pathstr, must_exist, is_embedded(), file_is_new, _channel, _path, _name)) {
|
||||
throw non_existent_source ();
|
||||
}
|
||||
|
||||
|
@ -439,7 +439,9 @@ AudioFileSource::move_to_trash (const ustring& trash_dir_name)
|
|||
}
|
||||
|
||||
bool
|
||||
AudioFileSource::find (ustring& pathstr, bool must_exist, bool& isnew, uint16_t& chan)
|
||||
AudioFileSource::find (ustring pathstr, bool must_exist, bool embedded,
|
||||
bool& isnew, uint16_t& chan,
|
||||
ustring& path, std::string& name)
|
||||
{
|
||||
ustring::size_type pos;
|
||||
bool ret = false;
|
||||
|
@ -541,8 +543,8 @@ AudioFileSource::find (ustring& pathstr, bool must_exist, bool& isnew, uint16_t&
|
|||
}
|
||||
}
|
||||
|
||||
_name = pathstr;
|
||||
_path = keeppath;
|
||||
name = pathstr;
|
||||
path = keeppath;
|
||||
ret = true;
|
||||
|
||||
} else {
|
||||
|
@ -561,12 +563,12 @@ AudioFileSource::find (ustring& pathstr, bool must_exist, bool& isnew, uint16_t&
|
|||
}
|
||||
}
|
||||
|
||||
_path = pathstr;
|
||||
path = pathstr;
|
||||
|
||||
if (is_embedded()) {
|
||||
_name = pathstr;
|
||||
if (embedded) {
|
||||
name = pathstr;
|
||||
} else {
|
||||
_name = pathstr.substr (pathstr.find_last_of ('/') + 1);
|
||||
name = pathstr.substr (pathstr.find_last_of ('/') + 1);
|
||||
}
|
||||
|
||||
if (!Glib::file_test (pathstr, Glib::FILE_TEST_EXISTS|Glib::FILE_TEST_IS_REGULAR)) {
|
||||
|
@ -574,12 +576,12 @@ AudioFileSource::find (ustring& pathstr, bool must_exist, bool& isnew, uint16_t&
|
|||
/* file does not exist or we cannot read it */
|
||||
|
||||
if (must_exist) {
|
||||
error << string_compose(_("Filesource: cannot find required file (%1): %2"), _path, strerror (errno)) << endmsg;
|
||||
error << string_compose(_("Filesource: cannot find required file (%1): %2"), pathstr, strerror (errno)) << endmsg;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (errno != ENOENT) {
|
||||
error << string_compose(_("Filesource: cannot check for existing file (%1): %2"), _path, strerror (errno)) << endmsg;
|
||||
error << string_compose(_("Filesource: cannot check for existing file (%1): %2"), pathstr, strerror (errno)) << endmsg;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
@ -2626,12 +2626,17 @@ Session::find_all_sources (string path, set<string>& result)
|
|||
continue;
|
||||
}
|
||||
|
||||
string path = _path; /* /-terminated */
|
||||
path += sound_dir_name;
|
||||
path += '/';
|
||||
path += prop->value();
|
||||
/* now we have to actually find the file */
|
||||
|
||||
result.insert (path);
|
||||
bool is_new;
|
||||
uint16_t chan;
|
||||
Glib::ustring path;
|
||||
std::string name;
|
||||
|
||||
if (AudioFileSource::find (prop->value(), true, false, is_new, chan, path, name)) {
|
||||
cerr << "Got " << path << " from XML source with prop = " << prop->value() << endl;
|
||||
result.insert (path);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -2819,6 +2824,8 @@ Session::cleanup_sources (Session::cleanup_report& rep)
|
|||
realpath(spath.c_str(), tmppath1);
|
||||
realpath((*i).c_str(), tmppath2);
|
||||
|
||||
cerr << "comparing " << tmppath1 << " and " << tmppath2 << endl;
|
||||
|
||||
if (strcmp(tmppath1, tmppath2) == 0) {
|
||||
used = true;
|
||||
break;
|
||||
|
|
|
@ -129,7 +129,6 @@ boost::shared_ptr<Source>
|
|||
SourceFactory::create (Session& s, const XMLNode& node, bool defer_peaks)
|
||||
{
|
||||
try {
|
||||
|
||||
boost::shared_ptr<Source> ret (new SndFileSource (s, node));
|
||||
if (setup_peakfile (ret, defer_peaks)) {
|
||||
return boost::shared_ptr<Source>();
|
||||
|
|
|
@ -78,11 +78,11 @@ foreach my $tmp (keys %sources) {
|
|||
"-t", "raw", # /dev/zero is raw :)
|
||||
"-r", $samplerate, # set sample rate
|
||||
"-c", "1", # 1 channel
|
||||
"-b", # input in bytes
|
||||
"-b", "8", # input in 8 bit chunks
|
||||
"-s", # signed
|
||||
"/dev/zero", # input signal
|
||||
|
||||
"-w", # output 16 bit
|
||||
"-b", "16", # output 16 bit
|
||||
"-t", "wav", # format wav
|
||||
$audioFileDirectory."/".$sources{$tmp}->{name}, # filename
|
||||
"trim", "0", $sources{$tmp}->{calculated_length}."s" # trim silence to wanted sample amount
|
||||
|
@ -91,7 +91,7 @@ foreach my $tmp (keys %sources) {
|
|||
if ($waveType eq "sine") {
|
||||
@cmd = (@cmd, "synth","sin","%0", "vol", "0.2", "fade","q","0.01s", $sources{$tmp}->{calculated_length}."s" , "0.01s");
|
||||
}
|
||||
|
||||
print (join (" ", @cmd));
|
||||
system(@cmd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue