Fixing refactoring changes from ITABase and ITADataSources

parent f1a40e6e
...@@ -100,7 +100,7 @@ void ITAHDFTSpectra::Export( const std::string& sFilePath, bool bNormalize/*=fal ...@@ -100,7 +100,7 @@ void ITAHDFTSpectra::Export( const std::string& sFilePath, bool bNormalize/*=fal
if( getFilenameSuffix( sFilePath ).empty() ) if( getFilenameSuffix( sFilePath ).empty() )
sFilePathComplete += ".wav"; sFilePathComplete += ".wav";
writeAudiofile( correctPath( sFilePathComplete ), &sfTargetData, ITA_FLOAT ); writeAudiofile( correctPath( sFilePathComplete ), &sfTargetData, GetSampleRate(), ITAQuantization::ITA_FLOAT );
return; return;
} }
......
...@@ -55,7 +55,7 @@ void ITANCTCStreamFilter::SetInputDatasource( ITADatasource* pdsInput ) ...@@ -55,7 +55,7 @@ void ITANCTCStreamFilter::SetInputDatasource( ITADatasource* pdsInput )
{ {
if( pdsInput ) if( pdsInput )
{ {
if( pdsInput->GetSamplerate() != oConfig.dSampleRate ) if( pdsInput->GetSampleRate() != oConfig.dSampleRate )
ITA_EXCEPT1(INVALID_PARAMETER, "Datasource has different samplerate"); ITA_EXCEPT1(INVALID_PARAMETER, "Datasource has different samplerate");
if( pdsInput->GetNumberOfChannels() != 2 ) if( pdsInput->GetNumberOfChannels() != 2 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment