-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add testcode for rem au-module
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,7 @@ set(SRCS | |
aac.c | ||
aes.c | ||
async.c | ||
au.c | ||
aubuf.c | ||
aulength.c | ||
aulevel.c | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @file au.c Audio testcode | ||
* | ||
* Copyright (C) 2024 Alfred E. Heggestad | ||
*/ | ||
|
||
#include <re.h> | ||
#include <rem.h> | ||
#include "test.h" | ||
|
||
|
||
#define DEBUG_MODULE "au" | ||
#define DEBUG_LEVEL 5 | ||
#include <re_dbg.h> | ||
|
||
|
||
int test_au(void) | ||
{ | ||
int err = 0; | ||
|
||
uint32_t nsamp = au_calc_nsamp(8000, 1, 20); | ||
ASSERT_EQ(160, nsamp); | ||
|
||
out: | ||
return err; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters