Documentation ¶
Index ¶
- Constants
- func NewAccurateRipV1(offset uint32) hash.Hash32
- func NewAccurateRipV2(offset uint32) hash.Hash32
- type HashType
- type Hasher
- func (h *Hasher) GetChannels() int
- func (h *Hasher) GetDuration() time.Duration
- func (h *Hasher) GetHashType() HashType
- func (h *Hasher) GetResult() []byte
- func (h *Hasher) GetSampleCount() int
- func (h *Hasher) GetSampleRate() int
- func (h *Hasher) GetWaitGroup() *sync.WaitGroup
- func (h *Hasher) Wait()
Constants ¶
View Source
const ( HashtypeCrc32 = HashType(iota) HashtypeSha256 HashtypeSha1 HashtypeMd5 HashtypeAccurateRipV1 HashtypeAccurateRipV1Start HashtypeAccurateRipV2 HashtypeAccurateRipV2Start )
View Source
const BytesPerSector = 2352
View Source
const CDChannels = 2
View Source
const CDSampleRate = Int16SamplesPerSector * SectorsPerSecond
View Source
const DataTrackGap = 11400
View Source
const Int16SamplesPerSector = BytesPerSector / (2 * CDChannels)
View Source
const SectorsPerSecond = 75
View Source
const TocPregap = 150
Variables ¶
This section is empty.
Functions ¶
func NewAccurateRipV1 ¶
func NewAccurateRipV2 ¶
Types ¶
type Hasher ¶
type Hasher struct {
// contains filtered or unexported fields
}
func (*Hasher) GetChannels ¶
func (*Hasher) GetDuration ¶
func (*Hasher) GetHashType ¶
func (*Hasher) GetSampleCount ¶
func (*Hasher) GetSampleRate ¶
func (*Hasher) GetWaitGroup ¶
Click to show internal directories.
Click to hide internal directories.