Skip to content

mp3 memory usage and time to play #25

@WesleiRamos

Description

@WesleiRamos

I think the memory usage is stable and it's taking a long time to play, about 15 seconds.
WAV plays instantly.

I'm using Windows 10, mp3 file size 3,4MB

(Sorry my english)

code

package main

import "time"
import audio "github.com/200sc/klangsynthese"

func main() {
	player, _ := audio.LoadFile("fazenda.mp3")
	println("Tocando")
	if err := <-player.Play(); err != nil {
		panic(err)
	}
	time.Sleep(player.PlayLength())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions