Skip to content

Commit

Permalink
pcm: snd_pcm_(physical_)format_width() - change documentation
Browse files Browse the repository at this point in the history
The word "nominal" is not so correct here. Use similar
wording as we use in the kernel space (the bit-width of the format).

Link: larsimmisch/pyalsaaudio#146
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
perexg committed Feb 22, 2024
1 parent d8ce72f commit 19be3b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pcm/pcm_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ int snd_pcm_format_cpu_endian(snd_pcm_format_t format)
}

/**
* \brief Return nominal bits per a PCM sample
* \brief Return the bit-width of the format
* \param format Sample format
* \return bits per sample, a negative error code if not applicable
* \return the bit-width of the format, or a negative error code if not applicable
*/
int snd_pcm_format_width(snd_pcm_format_t format)
{
Expand Down Expand Up @@ -270,9 +270,9 @@ int snd_pcm_format_width(snd_pcm_format_t format)
}

/**
* \brief Return bits needed to store a PCM sample
* \brief Return the physical bit-width of the format (bits needed to store a PCM sample)
* \param format Sample format
* \return bits per sample, a negative error code if not applicable
* \return the physical bit-width of the format, or a negative error code if not applicable
*/
int snd_pcm_format_physical_width(snd_pcm_format_t format)
{
Expand Down

0 comments on commit 19be3b2

Please sign in to comment.