You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A SignalSource always returns getBitsPerSample = 64 bits. To save to wav file, bps is set to 16bit, I can't save to wave file with 8 bits per sample. I think that class SignalSource should have a property bps and its gettter, setter.
A bug in function readHeaderAndChannels() of class WaveFileHandler
short* data = new short[header.WaveSize/2];
fs.read((char_)data, header.WaveSize);
Ex header.WaveSize = 5, data was allocated with 4 bytes but filled with 5 bytes (from fs.read)
delete [] data; can crash ( always crash in Visual C++ 2012 (win 64bit))
Simple fix: short_ data = new short[header.WaveSize/2 + 1];
The text was updated successfully, but these errors were encountered:
short* data = new short[header.WaveSize/2];
fs.read((char_)data, header.WaveSize);
Ex header.WaveSize = 5, data was allocated with 4 bytes but filled with 5 bytes (from fs.read)
delete [] data; can crash ( always crash in Visual C++ 2012 (win 64bit))
Simple fix: short_ data = new short[header.WaveSize/2 + 1];
The text was updated successfully, but these errors were encountered: