Skip to content

Commit

Permalink
use s v0.1.1-alpha.2 (#14)
Browse files Browse the repository at this point in the history
* update to sound v0.1.1-alpha.2
  • Loading branch information
wsc1 authored Aug 26, 2018
1 parent 883c1aa commit f800008
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module zikichombo.org/codec

require zikichombo.org/sound v0.1.0-alpha.1
require zikichombo.org/sound v0.1.1-alpha.2
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
zikichombo.org/sound v0.1.0-alpha.1 h1:1/tByuGvvertI6PlIt1bk9I0GnwrnwfDml/OSMPULFQ=
zikichombo.org/sound v0.1.0-alpha.1/go.mod h1:akiZR7uLjsosCVBmP0t0hqsOgZ7iydYzjz92wFK2pLQ=
zikichombo.org/sound v0.1.1-alpha.2 h1:x2bLgomOt5nKdX5feIkRn1+cthP8YLXLqa62cBmFfVs=
zikichombo.org/sound v0.1.1-alpha.2/go.mod h1:akiZR7uLjsosCVBmP0t0hqsOgZ7iydYzjz92wFK2pLQ=
zikichombo.org/sound v0.1.1 h1:ZBEmrafI255I9id8EoJKv1ZJ48QmI0bJE4TiNJ9Em8Q=
zikichombo.org/sound v0.1.1/go.mod h1:akiZR7uLjsosCVBmP0t0hqsOgZ7iydYzjz92wFK2pLQ=
2 changes: 1 addition & 1 deletion wav/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (d *Decoder) Channels() int {
func (d *Decoder) Receive(dst []float64) (int, error) {
nC := d.Channels()
if len(dst)%nC != 0 {
return 0, sound.ChannelAlignmentError
return 0, sound.ErrChannelAlignment
}
var err error
var c, f int
Expand Down
2 changes: 1 addition & 1 deletion wav/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (e *Encoder) put(s float64) error {
func (e *Encoder) Send(src []float64) error {
nC := e.Channels()
if len(src)%nC != 0 {
return sound.ChannelAlignmentError
return sound.ErrChannelAlignment
}
nF := len(src) / nC
var err error
Expand Down

0 comments on commit f800008

Please sign in to comment.