fix handling of new session
[ardour.git] / libs / ardour / audio_playlist_source.cc
index 915aee9595ec685293148965911fbf75e018001f..5e8dc09d452a1c5a02d58e837438465fa0555111 100644 (file)
@@ -127,8 +127,8 @@ AudioPlaylistSource::set_state (const XMLNode& node, int version, bool with_desc
 framecnt_t
 AudioPlaylistSource::read_unlocked (Sample* dst, framepos_t start, framecnt_t cnt) const
 {
-       boost::shared_ptr<Sample> sbuf;
-       boost::shared_ptr<gain_t> gbuf;
+       boost::shared_array<Sample> sbuf;
+       boost::shared_array<gain_t> gbuf;
        framecnt_t to_read;
        framecnt_t to_zero;
 
@@ -213,7 +213,7 @@ int
 AudioPlaylistSource::setup_peakfile ()
 {
        _peak_path = Glib::build_filename (_session.session_directory().peak_path(), name() + ARDOUR::peakfile_suffix);
-       return initialize_peakfile (false, string());
+       return initialize_peakfile (string());
 }
 
 string