Update stale Go dependencies

This commit is contained in:
Storm Dragon
2026-05-14 12:21:15 -04:00
parent 2bd43989a7
commit 81a928e122
36 changed files with 3064 additions and 4291 deletions
+2 -4
View File
@@ -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
}
+6
View File
@@ -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()