Skip to content

源码中pcm生产好像不行 #2

@iterrypeng

Description

@iterrypeng

源码中pcm生产好像不行,xcode编译可以成功,但是一点击播放 就是crash掉了,具体出现问题的代码位置是:
方法:int addWAVHeader(unsigned char *buffer, int sample_rate, int bytesPerSample, int channels, long dataByteSize)
中代码
memcpy(buffer+sizeof(pcmHEADER)+sizeof(pcmFMT), &pcmDATA, sizeof(pcmDATA));

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