mirror of https://bitbucket.org/ausocean/av.git
alsa: test files updated to use Setup instead of Set
This commit is contained in:
parent
ba08c58af4
commit
456b711b28
|
@ -53,7 +53,7 @@ func TestDevice(t *testing.T) {
|
||||||
// Create a new ALSA device, start, read/lex, and then stop it.
|
// Create a new ALSA device, start, read/lex, and then stop it.
|
||||||
l := logger.New(logger.Debug, os.Stderr, true)
|
l := logger.New(logger.Debug, os.Stderr, true)
|
||||||
ai := New(l)
|
ai := New(l)
|
||||||
err := ai.Set(c)
|
err := ai.Setup(c)
|
||||||
// If there was an error opening the device, skip this test.
|
// If there was an error opening the device, skip this test.
|
||||||
if _, ok := err.(OpenError); ok {
|
if _, ok := err.(OpenError); ok {
|
||||||
t.Skip(err)
|
t.Skip(err)
|
||||||
|
@ -119,7 +119,7 @@ func TestIsRunning(t *testing.T) {
|
||||||
l := logger.New(logger.Debug, &bytes.Buffer{}, true) // Discard logs.
|
l := logger.New(logger.Debug, &bytes.Buffer{}, true) // Discard logs.
|
||||||
d := New(l)
|
d := New(l)
|
||||||
|
|
||||||
err := d.Set(config.Config{
|
err := d.Setup(config.Config{
|
||||||
SampleRate: sampleRate,
|
SampleRate: sampleRate,
|
||||||
Channels: channels,
|
Channels: channels,
|
||||||
BitDepth: bitDepth,
|
BitDepth: bitDepth,
|
||||||
|
|
Loading…
Reference in New Issue