Skip to content

possible type error? #1

@topdeckwin

Description

@topdeckwin

Hello, I was working on a asr project and find your code pretty helpful. However, I encounter a problem when I test your code.
On line 90 and 91 of your MFCC.cpp,
FrmLen=FrmLen*FS; // Obtain frame length in samples
FrmSpace=FrmSpace*FS; // Obtain frame space in samples
you set frmlen to the number of samples in one frame, which has unit short.
On line 126,
fseek(sourcefile, -(FrmLen-FrmSpace), SEEK_CUR); // move to the next frame
you move the file curser back FrmLen-FrmSpace bytes, but since the samples are short, should it be -2*(FrmLen-FrmSpace)?

Thank you for your time.

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