pw-cat: fix raw read

raw read needs bytes, so use the stride to calculate it from frames.
Move ulaw/alaw to packed formats.
This commit is contained in:
Wim Taymans 2021-08-17 17:56:31 +02:00
parent f7c91491cb
commit 49c1c0386f
4 changed files with 10 additions and 10 deletions

View file

@ -79,6 +79,9 @@ enum spa_audio_format {
SPA_AUDIO_FORMAT_F64_LE,
SPA_AUDIO_FORMAT_F64_BE,
SPA_AUDIO_FORMAT_ULAW,
SPA_AUDIO_FORMAT_ALAW,
/* planar formats */
SPA_AUDIO_FORMAT_START_Planar = 0x200,
SPA_AUDIO_FORMAT_U8P,
@ -93,9 +96,6 @@ enum spa_audio_format {
/* other formats start here */
SPA_AUDIO_FORMAT_START_Other = 0x400,
SPA_AUDIO_FORMAT_ULAW,
SPA_AUDIO_FORMAT_ALAW,
/* Aliases */
/* DSP formats */