Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITACTC
Commits
b9e87de1
Commit
b9e87de1
authored
Sep 23, 2016
by
Dipl.-Ing. Jonas Stienen
Browse files
Fixing WAV exporter in HDFTSpectra
parent
d21288ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ITAHDFTSpectra.cpp
View file @
b9e87de1
...
...
@@ -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
;
}
...
...
src/ITANCTCStreamFilter.cpp
View file @
b9e87de1
...
...
@@ -55,7 +55,7 @@ void ITANCTCStreamFilter::SetInputDatasource( ITADatasource* pdsInput )
{
if
(
pdsInput
)
{
if
(
pdsInput
->
GetSample
r
ate
()
!=
oConfig
.
dSampleRate
)
if
(
pdsInput
->
GetSample
R
ate
()
!=
oConfig
.
dSampleRate
)
ITA_EXCEPT1
(
INVALID_PARAMETER
,
"Datasource has different samplerate"
);
if
(
pdsInput
->
GetNumberOfChannels
()
!=
2
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment