diff options
author | David Robillard <d@drobilla.net> | 2006-08-10 03:04:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-08-10 03:04:13 +0000 |
commit | d4dd338beb813bcfe7470729cf6611aeea55cfa4 (patch) | |
tree | 7334c3f5811bcf1976c1687d346d64603232732b /libs/ardour/diskstream.cc | |
parent | ae95684d225bb5725211656859e3d801045e05f3 (diff) |
- Fixed a buffer size bug when ~/.ardour2 doesn't exist (can't load configuration), if in a hacky way
- Removed useless workbuf/conversion_buffers (same thing), uneeded with libsndfile
git-svn-id: svn://localhost/ardour2/trunk@781 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/diskstream.cc')
-rw-r--r-- | libs/ardour/diskstream.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/diskstream.cc b/libs/ardour/diskstream.cc index a9a5c6ce07..b2d481077f 100644 --- a/libs/ardour/diskstream.cc +++ b/libs/ardour/diskstream.cc @@ -56,7 +56,12 @@ using namespace std; using namespace ARDOUR; using namespace PBD; -jack_nframes_t Diskstream::disk_io_chunk_frames = 0; +/* XXX This goes uninitialized when there is no ~/.ardour2 directory. + * I can't figure out why, so this will do for now (just stole the + * default from configuration_vars.h). 0 is not a good value for + * allocating buffer sizes.. + */ +jack_nframes_t Diskstream::disk_io_chunk_frames = 1024 * 256; sigc::signal<void,Diskstream*> Diskstream::DiskstreamCreated; sigc::signal<void,list<Source*>*> Diskstream::DeleteSources; |