]> git.alsa-project.org Git - alsa-utils.git/commitdiff
- Fix typos in endian condition check
authorTakashi Iwai <tiwai@suse.de>
Fri, 26 May 2000 11:53:14 +0000 (11:53 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 26 May 2000 11:53:14 +0000 (11:53 +0000)
  (XXX_ENDIAN -> SND_XXX_ENDIAN)

aplay/aplay.c

index 057407b83d7a6b30921d85c6941c60db79913286..e15b18c8167f60f0ac0cd07b4165dd34ef57c352 100644 (file)
@@ -529,7 +529,7 @@ static int test_wavefile(void *buffer)
                }
                if (LE_SHORT(wp->modus) < 1 || LE_SHORT(wp->modus) > 32) {
                        fprintf(stderr, "%s: can't play WAVE-files with %d tracks\n",
-                               command, wp->modus);
+                               command, LE_SHORT(wp->modus));
                        exit(EXIT_FAILURE);
                }
                format.voices = LE_SHORT(wp->modus);
@@ -542,7 +542,7 @@ static int test_wavefile(void *buffer)
                        break;
                default:
                        fprintf(stderr, "%s: can't play WAVE-files with sample %d bits wide\n",
-                               command, wp->bit_p_spl);
+                               command, LE_SHORT(wp->bit_p_spl));
                }
                format.rate = LE_INT(wp->sample_fq);
                count = LE_INT(wp->data_length);