• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1from warnings import warnpy3k
2warnpy3k("the CD module has been removed in Python 3.0", stacklevel=2)
3del warnpy3k
4
5ERROR           = 0
6NODISC          = 1
7READY           = 2
8PLAYING         = 3
9PAUSED          = 4
10STILL           = 5
11
12AUDIO           = 0
13PNUM            = 1
14INDEX           = 2
15PTIME           = 3
16ATIME           = 4
17CATALOG         = 5
18IDENT           = 6
19CONTROL         = 7
20
21CDDA_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