Skip to content

Commit

Permalink
[Audio Container] Resolve code review problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
taiqzheng committed Aug 14, 2024
1 parent fbbbb19 commit c7c7004
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/Interfaces/buddy/DAP/AudioContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ bool Audio<T, N>::saveToFile(std::string filePath, std::string format) {
if (format == "wav" || format == "wave") {
bool success = EncodeWaveFile(fileData);
if (!success) {
this->audioFormat = AudioFormat::ERROR;
throw std::runtime_error("Failed to encode WAVE file.");
};
std::cerr << "Failed to encode WAVE file." << std::endl;
return false;
}
} else {
std::cerr << "Unsupported: The encoding method for " << format
<< " format is not yet supported." << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion tests/Interface/core/AudioContainerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main() {
// 1. Print Decoded Reuslts using Buddy Audio Container
// ---------------------------------------------------------------------------

// Read and decode audio file with Buddy Audio Contaier.
// Read and decode audio file with Buddy Audio Container.
dap::Audio<float, 1> aud("../../../../tests/Interface/core/TestAudio.wav");

// CHECK: WAV
Expand Down

0 comments on commit c7c7004

Please sign in to comment.