Skip to content

build error: resampleWriter does not implement WriteCloser[PCM16Sample] (missing method String) #27

@oofp

Description

@oofp

Hello,

I just clone the project and followed the build instruction

I encountered the following error likely by a breaking change in one of the dependencies:



/mage build
# github.com/livekit/media-sdk
../../go/pkg/mod/github.com/livekit/media-sdk@v0.0.0-20250620175140-c86da91c22a2/resample_beep.go:45:9: cannot use r (variable of type *resampleWriter) as WriteCloser[PCM16Sample] value in return statement: *resampleWriter does not implement WriteCloser[PCM16Sample] (missing method String)
# gopkg.in/hraban/opus.v2
../../go/pkg/mod/gopkg.in/hraban/opus.v2@v2.0.0-20230925203106-0188a62cb302/streams_map.go:32:23: undefined: Stream
../../go/pkg/mod/gopkg.in/hraban/opus.v2@v2.0.0-20230925203106-0188a62cb302/streams_map.go:36:40: undefined: Stream
../../go/pkg/mod/gopkg.in/hraban/opus.v2@v2.0.0-20230925203106-0188a62cb302/streams_map.go:42:30: undefined: Stream
../../go/pkg/mod/gopkg.in/hraban/opus.v2@v2.0.0-20230925203106-0188a62cb302/streams_map.go:53:31: undefined: Stream
../../go/pkg/mod/gopkg.in/hraban/opus.v2@v2.0.0-20230925203106-0188a62cb302/streams_map.go:62:25: undefined: Stream
Error: exit status 1

My env:
Ubuntu 25.04
go version
go version go1.25.0 linux/amd64

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions