Skip to content

_raw_body_() retuning incorrect packet body data #38

Description

@thunderdanthaman

._raw_body() returns data with the CSDW repeated at the beginning and clips last 4 bytes of data..
CH11 - It appears CSDW is specific to the data packet body and is a 32bits.. Have only been pulling PCM data but perhaps seeking 40 or 28? or else exclude concatenating CSDW on return?

chapter10/packet.py

# Pull raw bytes if not a message-based packet
        else:
            self.buffer.seek(36 if self.secondary_header else 24)
            body = self.buffer.read(self.data_length - 4)
        return self.csdw_format.pack(self.__dict__) + body

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