Parser objects (returned by createparser()) have the following methods:
func(arg, type,
data)
, where arg is the user supplied argument, type is
the particular type of callback, and data is the data returned
for this type of callback. The type of the data depends on the
type of callback as follows:
Type | Value |
---|---|
audio |
String which can be passed unmodified to al.writesamps(). |
pnum |
Integer giving the program (track) number. |
index |
Integer giving the index number. |
ptime |
Tuple consisting of the program time in minutes, seconds, and frames. |
atime |
Tuple consisting of the absolute time in minutes, seconds, and frames. |
catalog |
String of 13 characters, giving the catalog number of the CD. |
ident |
String of 12 characters, giving the ISRC identification number of the recording. The string consists of two characters country code, three characters owner code, two characters giving the year, and five characters giving a serial number. |
control |
Integer giving the control bits from the CD subcode data |