Fixing WAV exporter in HDFTSpectra

parent d21288ec
......@@ -100,7 +100,7 @@ void ITAHDFTSpectra::Export( const std::string& sFilePath, bool bNormalize/*=fal
if( getFilenameSuffix( sFilePath ).empty() )
sFilePathComplete += ".wav";
writeAudiofile( correctPath( sFilePathComplete ), &sfTargetData, ITA_FLOAT );
writeAudiofile( correctPath( sFilePathComplete ), &sfTargetData, GetSampleRate(), ITAQuantization::ITA_FLOAT );
return;
}
......
......@@ -55,7 +55,7 @@ void ITANCTCStreamFilter::SetInputDatasource( ITADatasource* pdsInput )
{
if( pdsInput )
{
if( pdsInput->GetSamplerate() != oConfig.dSampleRate )
if( pdsInput->GetSampleRate() != oConfig.dSampleRate )
ITA_EXCEPT1(INVALID_PARAMETER, "Datasource has different samplerate");
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