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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user