Skip to content

TypeScript definitions #10

@abishek-sampath

Description

@abishek-sampath

Is there any plan to add to typescript definitions or typescript examples for this project?
It will be really useful if there are any typescript definitions for the main OpustoPCM class and its related functions

Also, I ran the example server and client that was present in the repo (with some of the raw_opus sample files), and I got this error

The buffer passed to decodeAudioData contains invalid content which cannot be decoded successfully.
EncodingError: The given encoding is not supported.

I don't think I changed anything with respect to the code in the example. I just translated to the code to use TypeScript syntax wherever possible. I am not sure if the error was because of unknown typing definitions, or its because of something else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions