Merge branch 'v0.19.x'

This commit is contained in:
Max Kellermann
2016-11-17 22:19:46 +01:00
6 changed files with 47 additions and 15 deletions

View File

@@ -774,6 +774,9 @@ AlsaOutput::Recover(int err)
if (err == -EAGAIN)
return 0;
/* fall-through to snd_pcm_prepare: */
#if GCC_CHECK_VERSION(7,0)
[[fallthrough]];
#endif
case SND_PCM_STATE_SETUP:
case SND_PCM_STATE_XRUN:
period_position = 0;

View File

@@ -161,10 +161,10 @@ WinmmOutput::Open(AudioFormat &audio_format)
throw std::runtime_error("CreateEvent() failed");
switch (audio_format.format) {
case SampleFormat::S8:
case SampleFormat::S16:
break;
case SampleFormat::S8:
case SampleFormat::S24_P32:
case SampleFormat::S32:
case SampleFormat::FLOAT: