Skip to content

IO error when reading 32-bit WAV file #21

@asehgal123

Description

@asehgal123

First of all great package, I am definately going to play around with it.

However I am gettting follwing error on line 105 in WavFile.cs

System.IO.EndOfStreamException: 'Unable to read beyond the end of the stream.'

By reading the source code it looks like the loop on line 103 goes through to sampleCount which is calculated based on blocksize. For some reason blocksize is being read as 1 (if I set it to 2 then everything works). I am new to this so I don't fully understand the file format.

Wav file that I am loading has channelCount of 1 and blockSize of 1 (Is that even correct? could it be that wav file is incorrect), you think you can take a look at this issue?

  • Abhi

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