Skip to content

Commit

Permalink
remove println
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniels committed Jan 24, 2024
1 parent 4522984 commit 2b1b742
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion cmd/stream_audio/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion cmd/stream_av/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion cmd/stream_video/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions query.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package gostream

import (
"fmt"
"image"
"math"
"regexp"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2b1b742

Please sign in to comment.