"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/Mixer.cpp" between
lmms-1.2.0-rc7.tar.gz and lmms-1.2.0-rc8.tar.gz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support). Release candidate.

Mixer.cpp  (lmms-1.2.0-rc7):Mixer.cpp  (lmms-1.2.0-rc8)
skipping to change at line 522 skipping to change at line 522
m_qualitySettings = _qs; m_qualitySettings = _qs;
m_audioDev->applyQualitySettings(); m_audioDev->applyQualitySettings();
emit sampleRateChanged(); emit sampleRateChanged();
emit qualitySettingsChanged(); emit qualitySettingsChanged();
startProcessing(); startProcessing();
} }
void Mixer::setAudioDevice( AudioDevice * _dev ) void Mixer::setAudioDevice( AudioDevice * _dev,
bool startNow )
{ {
stopProcessing(); stopProcessing();
if( _dev == NULL ) if( _dev == NULL )
{ {
printf( "param _dev == NULL in Mixer::setAudioDevice(...). " printf( "param _dev == NULL in Mixer::setAudioDevice(...). "
"Trying any working audio-device\n" ); "Trying any working audio-device\n" );
m_audioDev = tryAudioDevices(); m_audioDev = tryAudioDevices();
} }
else else
{ {
m_audioDev = _dev; m_audioDev = _dev;
} }
emit sampleRateChanged(); emit sampleRateChanged();
startProcessing(); if (startNow) {startProcessing();}
} }
void Mixer::setAudioDevice( AudioDevice * _dev, void Mixer::setAudioDevice( AudioDevice * _dev,
const struct qualitySettings & _qs, const struct qualitySettings & _qs,
bool _needs_fifo ) bool _needs_fifo,
bool startNow )
{ {
// don't delete the audio-device // don't delete the audio-device
stopProcessing(); stopProcessing();
m_qualitySettings = _qs; m_qualitySettings = _qs;
if( _dev == NULL ) if( _dev == NULL )
{ {
printf( "param _dev == NULL in Mixer::setAudioDevice(...). " printf( "param _dev == NULL in Mixer::setAudioDevice(...). "
"Trying any working audio-device\n" ); "Trying any working audio-device\n" );
m_audioDev = tryAudioDevices(); m_audioDev = tryAudioDevices();
} }
else else
{ {
m_audioDev = _dev; m_audioDev = _dev;
} }
emit qualitySettingsChanged(); emit qualitySettingsChanged();
emit sampleRateChanged(); emit sampleRateChanged();
startProcessing( _needs_fifo ); if (startNow) {startProcessing( _needs_fifo );}
} }
void Mixer::storeAudioDevice() void Mixer::storeAudioDevice()
{ {
if( !m_oldAudioDev ) if( !m_oldAudioDev )
{ {
m_oldAudioDev = m_audioDev; m_oldAudioDev = m_audioDev;
} }
} }
 End of changes. 4 change blocks. 
4 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)