TravisWhitaker / libPOLY

A Musical Instrument for Computers
MIT License
13 stars 7 forks source link

Bit-depth ignored #10

Open michael-swan opened 7 years ago

michael-swan commented 7 years ago

In poly_gen_kernel and poly_next_frame you assume 16-bit encoding by using a uint16_t* to contain frame data and replacing the bit-depth with sizeof(uint16_t), which should likely instead be poly_format->bits / 8. Alternatively, you could remove the bit-depth parameter and assume 16-bit bit-depth.