Versions in this module Expand all Collapse all v0 v0.3.1 Nov 14, 2026 v0.3.0 Nov 14, 2026 Changes in this version + const CommandIdentify + const PageIdentify + const SourceMatches + func Commands() []core.CommandSpec v0.2.1 Nov 13, 2026 Changes in this version + const ModuleID + func UI() *sdui.Module v0.2.0 Nov 2, 2026 Changes in this version + const FramesPerSecond + const HiddenTrackNumber + const LeadIn + const MaxLoops + const MaxSectors + const MaxTracks + const SampleBytes + const SampleRate + const SectorBytes + const SectorSamples + var ErrNoAudio = errors.New("this CD image holds only data tracks, so there is nothing to play") + var ErrNotCD = errors.New("this isn't an image of an audio CD") + var ErrUnsupported = errors.New("this CD image is stored in a form WittyCD can't read") + var ForeignAudio func(path string) (flac string, err error) + var ManifestJSON []byte + func IsImageName(name string) bool + func MayBeRaw(name string) bool + func SheetFiles(path string) (files []string, image bool) + type Disc struct + Catalog string + Date string + DiscNumber int + Format string + Genre string + HasGraphics bool + HiddenTrack bool + Path string + Problem string + Sessions int + Text Text + Tracks []Track + Warnings []Warning + func Open(path string) (*Disc, error) + func (d *Disc) AudioEnd() int + func (d *Disc) AudioTracks() []*Track + func (d *Disc) Check(progress func(done float64) bool) *Report + func (d *Disc) Close() error + func (d *Disc) DurationSec() float64 + func (d *Disc) Facts() Facts + func (d *Disc) IsSilentRange(from, to int) bool + func (d *Disc) NewStream(tracks []int, loops int, deemphasis bool) (*Stream, error) + func (d *Disc) RangeStream(from, to int) (*Stream, error) + func (d *Disc) ReadGraphics(from, sectors int) ([]byte, error) + func (d *Disc) TOC() TOC + func (d *Disc) TotalBytes() int64 + func (d *Disc) Track(n int) *Track + func (d *Disc) TrackStream(n int) (*Stream, error) + type Facts struct + CDDBID string + DiscID string + DurationSec float64 + Format string + HasGraphics bool + HiddenTrack bool + Problem string + Sessions int + TOC string + Tracks []Track + Warnings []Warning + type Finding struct + Code string + Severity Severity + Text string + Track int + type Index struct + LBA int + Number int + type Report struct + AudioTracks int + Facts Facts + Findings []Finding + Sectors int + Summary string + Unreadable int + Worst Severity + type Severity string + const SeverityNote + const SeverityOK + const SeverityProblem + type Stream struct + func (s *Stream) ReadAt(p []byte, off int64) (int, error) + func (s *Stream) Reader() io.Reader + func (s *Stream) Samples() int64 + func (s *Stream) Size() int64 + func (s *Stream) WAV(startSample int64) *WAV + func (s *Stream) WriteFLAC(w io.Writer, startSample int64) error + type TOC struct + First int + Last int + LeadOut int + Offsets []int + func (t TOC) CDDBID() string + func (t TOC) LookupString() string + func (t TOC) MusicBrainzID() string + type Text struct + Arranger string + Composer string + Message string + Performer string + Songwriter string + Title string + type Track struct + Audio bool + CopyAllowed bool + End int + FourChannel bool + ISRC string + Indexes []Index + Mode string + Number int + PreEmphasis bool + Pregap int + Session int + Start int + Text Text + func (t *Track) Sectors() int + type WAV struct + func (w *WAV) ReadAt(p []byte, off int64) (int, error) + func (w *WAV) Size() int64 + type Warning struct + Code string + Message string