Prepare WAV structures for extraction.

This commit is contained in:
Jared Boone
2016-10-04 09:59:47 -07:00
parent 1bdca0fd8d
commit 1a2fd3e127
2 changed files with 29 additions and 33 deletions

View File

@@ -121,10 +121,8 @@ void RecordView::start() {
switch(file_type) {
case FileType::WAV:
{
auto p = std::make_unique<WAVFileWriter>(
sampling_rate
);
auto create_error = p->create(base_path.replace_extension(u".WAV"));
auto p = std::make_unique<WAVFileWriter>();
auto create_error = p->create(base_path.replace_extension(u".WAV"), sampling_rate);
if( create_error.is_valid() ) {
handle_error(create_error.value());
} else {