patch-src_output_alsa_plugin_c 533 B

1234567891011121314
  1. --- mpd-0.16.2.orig/src/output/alsa_plugin.c 2011-03-19 01:41:53.000000000 +0100
  2. +++ mpd-0.16.2/src/output/alsa_plugin.c 2011-05-14 13:44:14.000000000 +0200
  3. @@ -646,8 +646,9 @@ alsa_play(void *data, const void *chunk,
  4. while (true) {
  5. snd_pcm_sframes_t ret = ad->writei(ad->pcm, chunk, size);
  6. if (ret > 0) {
  7. - ad->period_position = (ad->period_position + ret)
  8. - % ad->period_frames;
  9. + // SIGFPE!
  10. + //ad->period_position = (ad->period_position + ret)
  11. + // % ad->period_frames;
  12. return ret * ad->frame_size;
  13. }