mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
Run codespell on the entire codebase
This tool detects and fixes common English spelling mistakes, with generally very few mistakes. Here is the command I used to generate this commit. There were a few changes that had to be done manually, and of course adding the ignore file: ```shell codespell -I .codespell-ignore -x .codespell-ignore -w ``` I didn’t add it to the CI, but this would be a good place for it.
This commit is contained in:
parent
688a1ab082
commit
14fdf07e8f
56 changed files with 152 additions and 141 deletions
|
|
@ -545,7 +545,7 @@ static const char *program_names[] = {
|
|||
"Celesta", "Glockenspiel", "Music Box", "Vibraphone", "Marimba",
|
||||
"Xylophone", "Tubular Bells", "Dulcimer", "Drawbar Organ", "Percussive Organ",
|
||||
"Rock Organ", "Church Organ", "Reed Organ", "Accoridan", "Harmonica",
|
||||
"Tango Accordian", "Nylon String Guitar", "Steel String Guitar",
|
||||
"Tango Accordion", "Nylon String Guitar", "Steel String Guitar",
|
||||
"Electric Jazz Guitar", "Electric Clean Guitar", "Electric Muted Guitar",
|
||||
"Overdriven Guitar", "Distortion Guitar", "Guitar Harmonics",
|
||||
"Acoustic Bass", "Electric Bass (fingered)", "Electric Bass (picked)",
|
||||
|
|
|
|||
|
|
@ -212,33 +212,33 @@ sf_format_endianess(int format)
|
|||
static inline enum spa_audio_format
|
||||
sf_format_to_pw(int format)
|
||||
{
|
||||
int endianess;
|
||||
int endianness;
|
||||
|
||||
endianess = sf_format_endianess(format);
|
||||
if (endianess < 0)
|
||||
endianness = sf_format_endianess(format);
|
||||
if (endianness < 0)
|
||||
return SPA_AUDIO_FORMAT_UNKNOWN;
|
||||
|
||||
switch (format & SF_FORMAT_SUBMASK) {
|
||||
case SF_FORMAT_PCM_S8:
|
||||
return SPA_AUDIO_FORMAT_S8;
|
||||
case SF_FORMAT_PCM_16:
|
||||
return endianess == 1 ? SPA_AUDIO_FORMAT_S16_LE :
|
||||
endianess == 2 ? SPA_AUDIO_FORMAT_S16_BE :
|
||||
SPA_AUDIO_FORMAT_S16;
|
||||
return endianness == 1 ? SPA_AUDIO_FORMAT_S16_LE :
|
||||
endianness == 2 ? SPA_AUDIO_FORMAT_S16_BE :
|
||||
SPA_AUDIO_FORMAT_S16;
|
||||
case SF_FORMAT_PCM_24:
|
||||
case SF_FORMAT_PCM_32:
|
||||
return endianess == 1 ? SPA_AUDIO_FORMAT_S32_LE :
|
||||
endianess == 2 ? SPA_AUDIO_FORMAT_S32_BE :
|
||||
SPA_AUDIO_FORMAT_S32;
|
||||
return endianness == 1 ? SPA_AUDIO_FORMAT_S32_LE :
|
||||
endianness == 2 ? SPA_AUDIO_FORMAT_S32_BE :
|
||||
SPA_AUDIO_FORMAT_S32;
|
||||
case SF_FORMAT_DOUBLE:
|
||||
return endianess == 1 ? SPA_AUDIO_FORMAT_F64_LE :
|
||||
endianess == 2 ? SPA_AUDIO_FORMAT_F64_BE :
|
||||
SPA_AUDIO_FORMAT_F64;
|
||||
return endianness == 1 ? SPA_AUDIO_FORMAT_F64_LE :
|
||||
endianness == 2 ? SPA_AUDIO_FORMAT_F64_BE :
|
||||
SPA_AUDIO_FORMAT_F64;
|
||||
case SF_FORMAT_FLOAT:
|
||||
default:
|
||||
return endianess == 1 ? SPA_AUDIO_FORMAT_F32_LE :
|
||||
endianess == 2 ? SPA_AUDIO_FORMAT_F32_BE :
|
||||
SPA_AUDIO_FORMAT_F32;
|
||||
return endianness == 1 ? SPA_AUDIO_FORMAT_F32_LE :
|
||||
endianness == 2 ? SPA_AUDIO_FORMAT_F32_BE :
|
||||
SPA_AUDIO_FORMAT_F32;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -1294,7 +1294,7 @@ int main(int argc, char *argv[])
|
|||
data.volume = -1.0;
|
||||
data.quality = -1;
|
||||
|
||||
/* initialize list everytime */
|
||||
/* initialize list every time */
|
||||
spa_list_init(&data.targets);
|
||||
|
||||
while ((c = getopt_long(argc, argv, "hvprmR:q:", long_options, NULL)) != -1) {
|
||||
|
|
|
|||
|
|
@ -496,7 +496,7 @@ static int draw_graph(struct data *d, const char *path)
|
|||
/* open the file */
|
||||
fp = fopen(path, "w");
|
||||
if (fp == NULL) {
|
||||
printf("open error: could not open %s for writting\n", path);
|
||||
printf("open error: could not open %s for writing\n", path);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue