Skip to content

Commit

Permalink
Corrected Ulaw2AlawFrame() name
Browse files Browse the repository at this point in the history
  • Loading branch information
zaf committed Dec 29, 2016
1 parent 329137d commit 3d6032e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ func Ulaw2Alaw(ulaw []byte) []byte
```
Ulaw2Alaw performs direct u-law to A-law data conversion

#### func Ulaw2UlawFrame
#### func Ulaw2AlawFrame

```go
func Ulaw2UlawFrame(frame uint8) uint8
func Ulaw2AlawFrame(frame uint8) uint8
```
Ulaw2UlawFrame directly converts a u-law frame to A-law
Ulaw2AlawFrame directly converts a u-law frame to A-law

#### type Decoder

Expand Down
4 changes: 2 additions & 2 deletions ulaw.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func Ulaw2Alaw(ulaw []byte) []byte {
return ulaw
}

// Ulaw2UlawFrame directly converts a u-law frame to A-law
func Ulaw2UlawFrame(frame uint8) uint8 {
// Ulaw2AlawFrame directly converts a u-law frame to A-law
func Ulaw2AlawFrame(frame uint8) uint8 {
return ulaw2alaw[frame]
}

0 comments on commit 3d6032e

Please sign in to comment.