Skip to content

Signed 16bit stream incorrectly converted #12

@xeoncross

Description

@xeoncross

Reading a 2-channel, signed 16bit PCM stream doesn't work (common) because the bytes are converted to int32 instead of int16

n = int32(s[0]) + int32(s[1])<<8

n = int16(buf[0]) + int16(buf[1])<<8

You can see a copy of the byte stream graphed here: http://imgur.com/a/TVuH6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions