From 7a58cc305abd8dd3207ab57cc80209bd571ef308 Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Tue, 7 Mar 2017 13:15:49 +0100 Subject: [PATCH] Bump up sample limits to 300MB and 90 minutes (#3411) --- src/core/SampleBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/SampleBuffer.cpp b/src/core/SampleBuffer.cpp index 4c1738db5..351baa69b 100644 --- a/src/core/SampleBuffer.cpp +++ b/src/core/SampleBuffer.cpp @@ -202,7 +202,7 @@ void SampleBuffer::update( bool _keep_settings ) m_frames = 0; const QFileInfo fileInfo( file ); - if( fileInfo.size() > 100*1024*1024 ) + if( fileInfo.size() > 300*1024*1024 ) { fileLoadError = true; } @@ -215,7 +215,7 @@ void SampleBuffer::update( bool _keep_settings ) { f_cnt_t frames = sf_info.frames; int rate = sf_info.samplerate; - if( frames / rate > 60 * 60 ) // 60 minutes + if( frames / rate > 90 * 60 ) // 90 minutes { fileLoadError = true; }