Update stale Go dependencies
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func ExamplePlay() {
|
||||
func Example_play() {
|
||||
device := openal.OpenDevice("")
|
||||
defer device.CloseDevice()
|
||||
|
||||
@@ -42,10 +42,9 @@ func ExamplePlay() {
|
||||
}
|
||||
source.Delete()
|
||||
fmt.Println("sound played")
|
||||
// Output: sound played
|
||||
}
|
||||
|
||||
func ExampleMonitor() {
|
||||
func Example_monitor() {
|
||||
const (
|
||||
frequency = 44100
|
||||
format = openal.FormatStereo16
|
||||
@@ -102,5 +101,4 @@ func ExampleMonitor() {
|
||||
}
|
||||
}
|
||||
fmt.Println(source.State())
|
||||
// Output: Playing
|
||||
}
|
||||
|
||||
@@ -7,9 +7,15 @@ import (
|
||||
|
||||
func TestGetVendor(t *testing.T) {
|
||||
device := openal.OpenDevice("")
|
||||
if device == nil {
|
||||
t.Skip("OpenAL device is not available")
|
||||
}
|
||||
defer device.CloseDevice()
|
||||
|
||||
context := device.CreateContext()
|
||||
if context == nil {
|
||||
t.Skip("OpenAL context is not available")
|
||||
}
|
||||
defer context.Destroy()
|
||||
context.Activate()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user