mirror of https://bitbucket.org/ausocean/av.git
audio: inline syntax for NewDevice
This commit is contained in:
parent
3df9300c1c
commit
78b31c6322
|
@ -94,12 +94,7 @@ type Logger interface {
|
|||
type OpenError error
|
||||
|
||||
// NewDevice initializes and returns a Device which has its logger set as the given logger.
|
||||
func NewDevice(l Logger) *Device {
|
||||
d := &Device{
|
||||
l: l,
|
||||
}
|
||||
return d
|
||||
}
|
||||
func NewDevice(l Logger) *Device { return &Device{l: l} }
|
||||
|
||||
// Set will take a Config struct, check the validity of the relevant fields
|
||||
// and then performs any configuration necessary. If fields are not valid,
|
||||
|
|
Loading…
Reference in New Issue