mirror of
https://github.com/IllusionMan1212/flac-odin.git
synced 2026-10-24 02:12:29 +00:00
initial. still lots more to be done
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package flac_example
|
||||
|
||||
import "core:fmt"
|
||||
import "core:os"
|
||||
import "core:time"
|
||||
|
||||
import "../"
|
||||
|
||||
main :: proc() {
|
||||
start := time.now()
|
||||
if len(os.args) < 2 {
|
||||
fmt.eprintln("Please provide a path to a flac file.")
|
||||
os.exit(1)
|
||||
}
|
||||
|
||||
err := flac.load_from_file(os.args[1])
|
||||
if err != nil {
|
||||
fmt.eprintln(err)
|
||||
os.exit(1)
|
||||
}
|
||||
|
||||
end := time.now()
|
||||
|
||||
elapsed := time.diff(start, end)
|
||||
fmt.println("Decoding took", elapsed)
|
||||
}
|
||||
Reference in New Issue
Block a user