Skip to content

Commit

Permalink
rem: add au_ prefix to calc_nsamp()
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Dec 26, 2024
1 parent 515176d commit 6b99b54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
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;
}

0 comments on commit 6b99b54

Please sign in to comment.