swami / libinstpatch

Instrument file software library.
Other
20 stars 6 forks source link

inconsistent channel information #66

Open joelkraehemann opened 2 years ago

joelkraehemann commented 2 years ago

Hi,

I try to read stereo data out of a Soundfont2 file. I think the libinstpatch provides inconsistent channel information with a wrong size check ipatch_sample_handle_read() which doesn't respect stereo data.

If I understand it correct you use libsndfile to read the data, so you have to multiply by channel count in order to get all frames.