Fix warning about depreciated alsa function in new alsa versions
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1472 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QLabel>
|
||||
|
||||
|
||||
#include "audio_alsa.h"
|
||||
|
||||
#ifdef LMMS_HAVE_ALSA
|
||||
@@ -455,6 +454,8 @@ int audioALSA::setSWParams( void )
|
||||
}
|
||||
|
||||
// align all transfers to 1 sample
|
||||
|
||||
#if SND_LIB_VERSION < ((1<<16)|(0)|16)
|
||||
if( ( err = snd_pcm_sw_params_set_xfer_align( m_handle,
|
||||
m_swParams, 1 ) ) < 0 )
|
||||
{
|
||||
@@ -462,6 +463,7 @@ int audioALSA::setSWParams( void )
|
||||
snd_strerror( err ) );
|
||||
return( err );
|
||||
}
|
||||
#endif
|
||||
|
||||
// write the parameters to the playback device
|
||||
if( ( err = snd_pcm_sw_params( m_handle, m_swParams ) ) < 0 )
|
||||
|
||||
Reference in New Issue
Block a user