audio: use new improved default namer to avoid API conflicts
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
169af71bb0
commit
67c7246f09
|
@ -7,6 +7,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
|
"gobot.io/x/gobot"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Adaptor is gobot Adaptor connection to audio playback
|
// Adaptor is gobot Adaptor connection to audio playback
|
||||||
|
@ -17,7 +19,7 @@ type Adaptor struct {
|
||||||
// NewAdaptor returns a new audio Adaptor
|
// NewAdaptor returns a new audio Adaptor
|
||||||
//
|
//
|
||||||
func NewAdaptor() *Adaptor {
|
func NewAdaptor() *Adaptor {
|
||||||
return &Adaptor{name: "Audio"}
|
return &Adaptor{name: gobot.DefaultName("Audio")}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Name returns the Adaptor Name
|
// Name returns the Adaptor Name
|
||||||
|
|
|
@ -25,7 +25,7 @@ type Driver struct {
|
||||||
//
|
//
|
||||||
func NewDriver(a *Adaptor, filename string) *Driver {
|
func NewDriver(a *Adaptor, filename string) *Driver {
|
||||||
return &Driver{
|
return &Driver{
|
||||||
name: "Audio",
|
name: gobot.DefaultName("Audio"),
|
||||||
connection: a,
|
connection: a,
|
||||||
interval: 500 * time.Millisecond,
|
interval: 500 * time.Millisecond,
|
||||||
filename: filename,
|
filename: filename,
|
||||||
|
|
Loading…
Reference in New Issue