Skip to content

Commit

Permalink
Fix builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew committed Oct 6, 2018
1 parent b88bd17 commit 7ec6f04
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions cmd/flac2wav/flac2wav.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import (
"log"
"os"

_ "azul3d.org/audio/flac.dev"
"azul3d.org/engine/audio"
_ "azul3d.org/engine/audio/flac"
"azul3d.org/engine/audio/wav"
"github.com/davecheney/profile"
"github.com/mewkiz/pkg/osutil"
"github.com/mewkiz/pkg/pathutil"
"github.com/pkg/profile"
)

// flagForce specifies if file overwriting should be forced, when a WAV file of
Expand Down Expand Up @@ -75,7 +76,7 @@ func flac2wav(path string) error {
// Encode WAV audio samples copied from the FLAC decoder.
// TODO(u): Replace with audio.Copy as soon as that doesn't cause audio
// sample conversions.
buf := make(audio.PCM16Samples, (32*1024)/8)
buf := make(audio.Int16, (32*1024)/8)
for {
nr, er := dec.Read(buf)
if nr > 0 {
Expand Down
7 changes: 4 additions & 3 deletions cmd/gitsync/gitsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import (
"os"
"strings"

"github.com/mewfork/go-github/github"
"github.com/google/go-github/github"
"golang.org/x/net/context"
)

func init() {
Expand All @@ -41,7 +42,7 @@ func main() {
func gitsync(username string) (err error) {
c := github.NewClient(nil)

repos, _, err := c.Repositories.List(username, nil)
repos, _, err := c.Repositories.List(context.TODO(), username, nil)
if err != nil {
return err
}
Expand All @@ -50,7 +51,7 @@ func gitsync(username string) (err error) {
fmt.Println("ssh-add ~/.ssh/id_rsa_mewmew")

for _, r := range repos {
repo, _, err := c.Repositories.Get(username, *r.Name)
repo, _, err := c.Repositories.Get(context.TODO(), username, *r.Name)
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/lyrics/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"fmt"
"flag"
"fmt"
"log"
"strings"

Expand All @@ -19,7 +19,7 @@ func main() {
)
const (
defaultArtist = "Johnossi"
defaultSong = "What's the point"
defaultSong = "What's the point"
)
flag.StringVar(&artist, "artist", defaultArtist, "artist name")
flag.StringVar(&song, "song", defaultSong, "song name")
Expand Down
2 changes: 1 addition & 1 deletion cmd/metagps/metagps.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"math"
"os"

gps "github.com/mewpull/goexifgps"
gps "github.com/kurtcoke/goexifgps"
"github.com/rwcarlsen/goexif/exif"
)

Expand Down

0 comments on commit 7ec6f04

Please sign in to comment.