summaryrefslogtreecommitdiff
path: root/libs/ardour/audiosource.cc
AgeCommit message (Collapse)Author
2013-07-15use g_unlink() rather than unlink() universally, requires <glib/gstdio.h> in ↵Paul Davis
several files
2013-07-15Use g_stat in AudioSource::initialize_peakfile for portabilityPaul Davis
2013-07-15Use g_rename in AudioSource::rename_peakfile for portabilityPaul Davis
2013-07-15Use g_utime for portability in AudioSource::touch_peakfilePaul Davis
2013-07-15Use g_stat in AudioSource::touch_peakfile for portabilityPaul Davis
2013-07-15Use ::write instead of pwrite in AudioSource::compute_and_write_peaks for ↵Paul Davis
portability This destroys the atomicity of pwrite() and thus suggests that we should do something else to ensure that multithread access to peakfiles (if it does in fact exist) is safe. OTOH, there may be no such thing, since they are designed for the GUI, which is single threaded (for now)
2013-07-15Use ::read instead of pread in AudioSource::read_peaks for portabilityPaul Davis
This destroys the atomicity of pread() and thus suggests that we should do something else to ensure that multithread access to peakfiles (if it does in fact exist) is safe. OTOH, there may be no such thing, since they are designed for the GUI, which is single threaded (for now)
2013-07-13Use boost::scoped_array in AudioSource::compute_and_write_peaksPaul Davis
2013-07-13Use boost::scoped_array in AudioSource::build_peaks_from_scratchPaul Davis
2013-07-13Remove use of goto in AudioSource::read_peaksPaul Davis
2013-07-13Use boost::scoped_array for controlling scope of peak data in ↵Paul Davis
AudioSource::read_peaks
2013-07-13Use boost::scoped_array in AudioSource::read_peaksPaul Davis
2013-07-13 Use boost::scoped_ptr to control scope of peakfile descriptorPaul Davis
2013-07-13Replace conditional peak debugging with DEBUG_TRACE macro usagePaul Davis
Also add some extra debugging info
2013-07-11 Disable peakfile reading and writing on windows for nowPaul Davis
There is no point trying to implement this until it can be tested
2013-07-11Remove non-portable and unnused header includesPaul Davis
2013-07-11Revert "Remove non-portable and unnused header includes"Paul Davis
This reverts commit 7ef79d3f4b02e3d2e71d6888fbedd9b3f9c325c7.
2013-07-11Remove non-portable and unnused header includesPaul Davis
2013-06-20(working) start of an experiment with pyramix-style waveform drawingPaul Davis
2013-06-20new image cache design for waveviews, with various fixes.Paul Davis
Rather than maintain a set of images in a cache, when we no longer have the required waveform data, create a new image that is appropriately centered and extends to roughly twice the screen width (or the limits of the region's source file(s), as necessary)
2013-03-31more work on the suprisingly ongoing filename/path/origin issuePaul Davis
2013-03-21fix nasty crash when using double-nested compound (consolidated) regions ↵Paul Davis
caused by not (re)allocating enough mixdown buffers; fix up various warnings from valgrind about mismatching operator delete[] by using shared_array<T> rather than shared_ptr<T>, as should have been the case all along
2012-07-25convert from Glib:: to Glib::Threads for all thread-related APIPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@13084 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-24Remove over 500 unnecessary includes (including 54 of session.h).David Robillard
It's slightly possible that this causes trivial build failures on different configurations, but otherwise shouldn't cause any problems (i.e. no actual changes other than include/naming/namespace stuff). I deliberately avoided removing libardour-config.h since this can mysteriously break things, though a few of those do seem to be unnecessary. This commit only targets includes of ardour/*.h. There is also a very large number of unnecessary includes of stuff in gtk2_ardour; tackling that should also give a big improvement in build time when things are modified. git-svn-id: svn://localhost/ardour2/branches/3.0@12420 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-11Simplify slightly odd update_length() signature.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@11900 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-05Fix double-delete (#4809).Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@11792 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-21fix a few warnings from newer versions of gccPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@10734 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-24Remove unused read/write data count code.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@10300 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-08-09Add a few asserts.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@9966 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-06-22second half of "bomb out if playlist construction from XML fails"Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@9759 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-06-01Fix broken whitespace. I'd apologize for the compile times if it was my ↵David Robillard
fault :D git-svn-id: svn://localhost/ardour2/branches/3.0@9654 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-05-30add dependents to a compound playlist before creating a source from it, so ↵Paul Davis
that the source's new peakfile shows the xfades git-svn-id: svn://localhost/ardour2/branches/3.0@9631 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-05-29don't always rebuild peakfiles for compound regionsPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@9627 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-05-28clean up memory leaks with nested source read buffersPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@9621 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-05-28putative fix for crashes related to diskstream playback buffer refills with ↵Paul Davis
compound regions git-svn-id: svn://localhost/ardour2/branches/3.0@9620 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-05-16very basic Join (regions) editing operation. not finished yet, no undoable, ↵Paul Davis
no sensible name for new region, etc. etc git-svn-id: svn://localhost/ardour2/branches/3.0@9518 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-04-09remove all use of access(2) (this was done a bit stupidly, we could have ↵Paul Davis
used g_access) git-svn-id: svn://localhost/ardour2/branches/3.0@9340 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-09make strip silence work (again?)Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@8226 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-03Remove all use of nframes_t.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@8166 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-11-14Create a new layer if required on record to a track in stacked mode. Fixes ↵Carl Hetherington
#3391. git-svn-id: svn://localhost/ardour2/branches/3.0@8026 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-14Tidy up PeaksReady locking slightly and emit it during ↵Carl Hetherington
done_with_peakfile_writes. Fixes some non-appearing peaks after record. git-svn-id: svn://localhost/ardour2/branches/3.0@7776 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-14remove Glib::ustring from libardour; allow any characters except '/' and '\' ↵Paul Davis
in paths (may cause issues when loading creatively named 2.X sessions; fix a couple of details of name collection and usage from the startup dialog git-svn-id: svn://localhost/ardour2/branches/3.0@7772 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-17forward port 2.X various changes (not all, but i have a list) ending with 6928Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@7643 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-06-29allow zero-length SMF files on disk again; fix some gcc 4.X optimization-on ↵Paul Davis
compile warnings git-svn-id: svn://localhost/ardour2/branches/3.0@7329 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-06-24add and use Source::empty() since it can be done more efficiently than ↵Paul Davis
length(pos) == 0 git-svn-id: svn://localhost/ardour2/branches/3.0@7300 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-05-14Keep to a quota of open files by closing least recently used ones as ↵Carl Hetherington
required. Should fix #2341. git-svn-id: svn://localhost/ardour2/branches/3.0@7101 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-22Allow more than one peaks_ready callback to be pending for an AudioRegionViewCarl Hetherington
at any one time. Prevents problems when there is more than 1 channel for which peaks are not ready; before, the first peaks_ready callback would be forgotten when the second one was requested. Should fix #3074. git-svn-id: svn://localhost/ardour2/branches/3.0@6951 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-15forward-port from 2.X commits 5827-6000 includingPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@6914 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-02remove PBD::Connection (replace use with PBD::ScopedConnection); remove ↵Paul Davis
limitation on transport roll after session end git-svn-id: svn://localhost/ardour2/branches/3.0@6834 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-30handle deletion of UI objects between the time that a callback is queued ↵Paul Davis
with the UI event loop and the execution of the callback (intrusive, big) git-svn-id: svn://localhost/ardour2/branches/3.0@6807 d708f5d6-7413-0410-9779-e7cbd77b26cf