1 from warnings import warnpy3k 2 warnpy3k("the CD module has been removed in Python 3.0", stacklevel=2) 3 del warnpy3k 4 5 ERROR = 0 6 NODISC = 1 7 READY = 2 8 PLAYING = 3 9 PAUSED = 4 10 STILL = 5 11 12 AUDIO = 0 13 PNUM = 1 14 INDEX = 2 15 PTIME = 3 16 ATIME = 4 17 CATALOG = 5 18 IDENT = 6 19 CONTROL = 7 20 21 CDDA_DATASIZE = 2352 22 23 ##CDDA_SUBCODESIZE = (sizeof(struct subcodeQ)) 24 ##CDDA_BLOCKSIZE = (sizeof(struct cdframe)) 25 ##CDDA_NUMSAMPLES = (CDDA_DATASIZE/2) 26 ## 27 ##CDQ_PREEMP_MASK = 0xd 28 ##CDQ_COPY_MASK = 0xb 29 ##CDQ_DDATA_MASK = 0xd 30 ##CDQ_BROADCAST_MASK = 0x8 31 ##CDQ_PREEMPHASIS = 0x1 32 ##CDQ_COPY_PERMITTED = 0x2 33 ##CDQ_DIGITAL_DATA = 0x4 34 ##CDQ_BROADCAST_USE = 0x8 35 ## 36 ##CDQ_MODE1 = 0x1 37 ##CDQ_MODE2 = 0x2 38 ##CDQ_MODE3 = 0x3 39