Skip to content

Commit

Permalink
[Audio Container] Remove redundant line.
Browse files Browse the repository at this point in the history
  • Loading branch information
taiqzheng committed Aug 13, 2024
1 parent fd1d4af commit fbbbb19
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/Interface/core/AudioContainerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ 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 Contaier.
dap::Audio<float, 1> aud("../../../../tests/Interface/core/TestAudio.wav");

// CHECK: WAV
fprintf(stderr, "%s\n", aud.getFormatName().c_str());
// CHECK: 16
Expand All @@ -48,11 +48,11 @@ int main() {
fprintf(stderr, "%f\n", aud.getData()[3]);
// CHECK: -0.000275
fprintf(stderr, "%f\n", aud.getData()[4]);

// ---------------------------------------------------------------------------
// 2. Compare Encoded results using Buddy Audio Container and AudioFile.h
// ---------------------------------------------------------------------------

// Encode the audio data and save it to a file using the Buddy Audio Container
string filePath = "./buddyEncodeResult.wav";
aud.saveToFile(filePath, "WAVE");
Expand All @@ -72,7 +72,6 @@ int main() {
// CHECK: -0.000244
fprintf(stderr, "%f\n", audContainer.getData()[4]);


// Print metadata and sample values using the third-party (AudioFile.h).
AudioFile<float> audFile(filePath);
// CHECK: 16
Expand Down

0 comments on commit fbbbb19

Please sign in to comment.