make a working API

This commit is contained in:
Neo Anderson committed 2020-02-15 09:32:44 -08:00
1 parent 2b5a5b3d38
commit f9ef6427f9
2 files changed
+37 -5

No files matched your search

+2 -5
View File
@@ -1,12 +1,9 @@
package karaoke
import (
"fmt"
"bytes"
"image"
"image/png"
"io/ioutil"
"log"
"os"
)
const (
@@ -71,7 +68,7 @@ func ScreenshotAtTime(cdgBytes []byte, timeInSec int) []byte {
/** @Return raw PNG buffer **/
func snap() []byte {
buf := new(bytes.Buffer)
png.Encode(out_file, internal_rgba_context)
png.Encode(buf, internal_rgba_context)
return buf.Bytes()
}