Popularity
3.3
Growing
Activity
2.3
Declining
46
2
9

Programming language: C
Tags: Audio And Music    

minimp3 alternatives and similar packages

Based on the "Audio and Music" category

Do you think we are missing an alternative of minimp3 or a related project?

Add another 'Audio and Music' Package

README

minimp3

Decode mp3 base on https://github.com/lieff/minimp3

Build Status Coverage Status GoDoc

See examples in example directory. make and make test test the example.

package main

import (
    "io/ioutil"

    "github.com/hajimehoshi/oto"
    "github.com/tosone/minimp3"
)

func main() {
    var file, _ = ioutil.ReadFile("test.mp3")
    dec, data, _ := minimp3.DecodeFull(file)

    player, _ := oto.NewPlayer(dec.SampleRate, dec.Channels, 2, 1024)
    player.Write(data)
}