fixed pointer additions leading to horrible noises under certain circumstances

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1850 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-11-24 11:29:00 +00:00
parent 7aa289dde3
commit 72c230820c

View File

@@ -268,7 +268,7 @@ void audioALSA::run( void )
m_convertEndian );
}
int min_len = qMin( len, outbuf_size - outbuf_pos );
memcpy( ptr, outbuf + outbuf_pos,
memcpy( ptr, (int_sample_t *) outbuf + outbuf_pos,
min_len * sizeof( int_sample_t ) );
ptr += min_len;
len -= min_len;