bugCompact Disc Input and Control Library - Bugs: bug #15191, example/paranoia2 reporting the...

 
 

bug #15191: example/paranoia2 reporting the wrong endianness

Submitted by:  None
Submitted on:  Sun 11 Dec 2005 10:34:24 PM UTC  
 
Category: run-time errorSeverity: 5 - Average
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: Rocky Bernstein <rocky>
Originator Email: -unavailable-Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 11 Dec 2005 11:45:26 PM UTC, comment #1:

The endian orientation reported is that of the CD-ROM drive, not of your CPU. ATAPI CD-ROM drives (and most CD-ROM drives whether ATAPI or not) return bytes back little Endian.

The manul page I have for version 1.0.1 oggenc says:

reads audio data in either raw, WAV, or AIFF format and encodes
it into an Ogg Vorbis stream. A CD-ROM is not audio data. Maybe a track of a CD-ROM is, but I don't believe oggenc gives this information. (Version 1.0.1 has an option called --raw but not --raw-endianness).

Rocky Bernstein <rocky>
Project AdministratorIn charge of this item.
Sun 11 Dec 2005 10:34:24 PM UTC, original submission:

By running the paranoia2 C++ example I noticed that it reports the wrong endianness on my big endian box (powermac g5).

Checking /dev/rdisk5 for cdrom...
Setting read block size at 8 sectors (18816 bytes).
Verifying drive can read CDDA...
Expected command set reads OK.
Attempting to determine drive endianness from data.......
Data appears to be coming back Little Endian.
certainty: 100%
Reading track 0 from LSN 0 to LSN 36

My CPU is big endian and after some test I've found that my cdrom returns big endian audio data. (unless it's "oggenc --raw-endianness" that has it backwards)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rocky (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 05 Mar 2007 11:53:00 AM UTCrockyOpen/ClosedOpen=>Closed
    Sun 11 Dec 2005 11:45:26 PM UTCrockyStatusNone=>Invalid
      Assigned toNone=>rocky

    Back to the top


    Powered by Savane 3.1-cleanup1