diff options
author | David Robillard <d@drobilla.net> | 2007-06-05 16:39:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-05 16:39:23 +0000 |
commit | 7852cc219cddcc86f747fed6616195f5a7642041 (patch) | |
tree | caf501536c5947406f21607e4ad72046f7ee2032 /libs/ardour/session_state.cc | |
parent | e9de0dec8a96d42ff0fd1ba406dfaba5f76ba2a0 (diff) |
Save MIDI files to interchange/sessionname/midifiles (instead of audiofiles).
Fix some uninitialized variables in Streamview.
Tempo-based SMF source (internally only).
Horrible crash on MIDI record finish.
git-svn-id: svn://localhost/ardour2/trunk@1955 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 285e3fd4c4..7f53f9c5b1 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -2037,6 +2037,33 @@ Session::sound_dir (bool with_path) const } string +Session::midi_dir (bool with_path) const +{ + string res; + string full; + + if (with_path) { + res = _path; + } else { + full = _path; + } + + res += interchange_dir_name; + res += '/'; + res += legalize_for_path (_name); + res += '/'; + res += midi_dir_name; + + if (with_path) { + full = res; + } else { + full += res; + } + + return res; +} + +string Session::peak_dir () const { string res = _path; |