From 2b1b7420ffa0ecd955c60f5c3e073e65cf1fed92 Mon Sep 17 00:00:00 2001 From: Eric Daniels Date: Wed, 24 Jan 2024 10:13:58 -0500 Subject: [PATCH] remove println --- cmd/stream_audio/main.go | 1 - cmd/stream_av/main.go | 1 - cmd/stream_video/main.go | 1 - query.go | 3 --- 4 files changed, 6 deletions(-) diff --git a/cmd/stream_audio/main.go b/cmd/stream_audio/main.go index 4651f00..0664651 100644 --- a/cmd/stream_audio/main.go +++ b/cmd/stream_audio/main.go @@ -13,7 +13,6 @@ import ( "github.com/edaniels/golog" utils "github.com/edaniels/goutils" "github.com/gen2brain/malgo" - // register microphone drivers. _ "github.com/pion/mediadevices/pkg/driver/microphone" "github.com/pion/webrtc/v3" diff --git a/cmd/stream_av/main.go b/cmd/stream_av/main.go index 66cb8a1..044440f 100644 --- a/cmd/stream_av/main.go +++ b/cmd/stream_av/main.go @@ -6,7 +6,6 @@ import ( "github.com/edaniels/golog" utils "github.com/edaniels/goutils" - // register drivers. _ "github.com/pion/mediadevices/pkg/driver/camera" _ "github.com/pion/mediadevices/pkg/driver/microphone" diff --git a/cmd/stream_video/main.go b/cmd/stream_video/main.go index b744b05..4b63722 100644 --- a/cmd/stream_video/main.go +++ b/cmd/stream_video/main.go @@ -6,7 +6,6 @@ import ( "github.com/edaniels/golog" utils "github.com/edaniels/goutils" - // register video drivers. _ "github.com/pion/mediadevices/pkg/driver/camera" _ "github.com/pion/mediadevices/pkg/driver/screen" diff --git a/query.go b/query.go index 9651ab7..b7f062f 100644 --- a/query.go +++ b/query.go @@ -1,7 +1,6 @@ package gostream import ( - "fmt" "image" "math" "regexp" @@ -348,10 +347,8 @@ func newAudioSourceFromDriver( if err := audioDriver.Open(); err != nil { return nil, errors.WithStack(err) } - fmt.Println("Try", mediaProp) reader, err := recorder.AudioRecord(mediaProp) if err != nil { - fmt.Printf("??? %T\n", recorder) return nil, errors.WithStack(err) } return newMediaSource[wave.Audio](audioDriver, mediaReaderFuncNoCtx[wave.Audio](reader.Read), mediaProp.Audio), nil