Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rem: add au_ prefix to calc_nsamp() #1244

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion include/rem_au.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ enum aufmt {
size_t aufmt_sample_size(enum aufmt fmt);
const char *aufmt_name(enum aufmt fmt);

uint32_t calc_nsamp(uint32_t srate, uint8_t channels, uint16_t ptime);
uint32_t au_calc_nsamp(uint32_t srate, uint8_t channels, uint16_t ptime);

/* todo: remove backwards wrapper later */
static inline uint32_t calc_nsamp(uint32_t srate, uint8_t channels,
uint16_t ptime)
{
return au_calc_nsamp(srate, channels, ptime);
}
2 changes: 1 addition & 1 deletion rem/au/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @return Number of samples
*/
uint32_t calc_nsamp(uint32_t srate, uint8_t channels, uint16_t ptime)
uint32_t au_calc_nsamp(uint32_t srate, uint8_t channels, uint16_t ptime)
{
return srate * channels * ptime / 1000;
}
Loading