2022-11-15 Fred Gleason <fredg@paravelsystems.com>

* Applied a PR from Robert Chipperfield that broke waveform
	generation on ARM architectures.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-11-15 13:42:39 -05:00
parent 572ff3913a
commit 7b329e94f7
2 changed files with 5 additions and 2 deletions

View File

@@ -220,8 +220,8 @@ void RDWavePainter::drawWaveByMsecs(int x,int w,int startmsecs,int endmsecs,
int startclip,int endclip)
{
drawWaveBySamples(x,w,
(unsigned)((double)startmsecs*(double)wave_sample_rate/1000.0),
(unsigned)((double)endmsecs*(double)wave_sample_rate/1000.0),
(int)((double)startmsecs*(double)wave_sample_rate/1000.0),
(int)((double)endmsecs*(double)wave_sample_rate/1000.0),
gain,channel,color,
(int)((double)startclip*(double)wave_sample_rate/1000.0),
(int)((double)endclip*(double)wave_sample_rate/1000.0));