Typo in AuFileReader

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 8, 9
    • Component/s: client-libs
    • b105
    • generic
    • generic

      AuFileReader has a next typo:

              if (! (magic == AuFileFormat.AU_SUN_MAGIC) || (magic == AuFileFormat.AU_DEC_MAGIC) ||
                  (magic == AuFileFormat.AU_SUN_INV_MAGIC) || (magic == AuFileFormat.AU_DEC_INV_MAGIC) ) {

                  // not AU, throw exception
                  throw new UnsupportedAudioFileException("not an AU file");
              }

              if ((magic == AuFileFormat.AU_SUN_MAGIC) || (magic == AuFileFormat.AU_DEC_MAGIC)) {
                  bigendian = true; // otherwise little-endian
              }

      Can you spot a typo? It seems that intention was to support all 4 AU_ types.

            Assignee:
            Sergey Bylokhov
            Reporter:
            Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: