File: CD.py

package info (click to toggle)
python2.4 2.4.4-3
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 44,624 kB
  • ctags: 86,948
  • sloc: ansic: 305,981; python: 271,903; makefile: 4,179; sh: 3,916; perl: 3,736; lisp: 3,678; xml: 894; objc: 756; cpp: 7; sed: 2
file content (34 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (28)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ERROR           = 0
NODISC          = 1
READY           = 2
PLAYING         = 3
PAUSED          = 4
STILL           = 5

AUDIO           = 0
PNUM            = 1
INDEX           = 2
PTIME           = 3
ATIME           = 4
CATALOG         = 5
IDENT           = 6
CONTROL         = 7

CDDA_DATASIZE   = 2352

##CDDA_SUBCODESIZE      = (sizeof(struct subcodeQ))
##CDDA_BLOCKSIZE        = (sizeof(struct cdframe))
##CDDA_NUMSAMPLES       = (CDDA_DATASIZE/2)
##
##CDQ_PREEMP_MASK       = 0xd
##CDQ_COPY_MASK = 0xb
##CDQ_DDATA_MASK        = 0xd
##CDQ_BROADCAST_MASK    = 0x8
##CDQ_PREEMPHASIS       = 0x1
##CDQ_COPY_PERMITTED    = 0x2
##CDQ_DIGITAL_DATA      = 0x4
##CDQ_BROADCAST_USE     = 0x8
##
##CDQ_MODE1     = 0x1
##CDQ_MODE2     = 0x2
##CDQ_MODE3     = 0x3