chromaprint

package
v1.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

README

go-media chromaprint bindings

This package provides bindings for chromaprint audio fingerprinting.

This package is part of a wider project, github.com/mutablelogic/go-media. Please see the module documentation for more information.

Building

In order to use this package, you will need to install the chromaprint libraries. On Darwin (Mac) with Homebrew installed:

[zsh] brew install chromaprint
[zsh] go get git@github.com:djthorpe/go-media.git
[zsh] cd go-media/sys/chromaprint

For Linux Debian,

[bash] sudo apt install libchromaprint-dev
[zsh] go get git@github.com:djthorpe/go-media.git
[zsh] cd go-media/sys/chromaprint

For more information:

This package provides low-level library bindings. There is also a client library for the web service.

Usage

TODO

Documentation

Overview

This package provides chromaprint audio fingerprinting bindings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Types

type AlgorithmType

type AlgorithmType C.int

func (AlgorithmType) String

func (a AlgorithmType) String() string

type Context

type Context C.ChromaprintContext

func NewChromaprint

func NewChromaprint(algorithm AlgorithmType) *Context

func (*Context) Channels

func (context *Context) Channels() int

func (*Context) Delay

func (context *Context) Delay() int

func (*Context) DelayMs

func (context *Context) DelayMs() time.Duration

func (*Context) Duration

func (context *Context) Duration() int

func (*Context) DurationMs

func (context *Context) DurationMs() time.Duration

func (*Context) Finish

func (context *Context) Finish() error

func (*Context) Free

func (context *Context) Free()

func (*Context) GetFingerprint

func (context *Context) GetFingerprint() (string, error)

func (*Context) Rate

func (context *Context) Rate() int

func (*Context) Start

func (context *Context) Start(rate, channels int) error

func (*Context) String

func (context *Context) String() string

func (*Context) Write

func (context *Context) Write(data []byte) error

func (*Context) WritePtr added in v1.6.1

func (context *Context) WritePtr(data uintptr, size int) error

type Error

type Error int

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL