[Mono-bugs] [Bug 496690] SoundPlayer playback is very choppy on Linux systems

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 21 16:54:45 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=496690

User cdhowie at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=496690#c1





--- Comment #1 from Chris Howie <cdhowie at gmail.com>  2009-04-21 14:54:44 MDT ---
I have narrowed this problem down to the call to snd_pcm_writei that is being
called up the stack from Mono.Audio.WavData:Play(AudioDevice).

The call dev.PlaySample(buffer, read/frame_divider) confuses ALSA since it
considers one frame to be a complete sample for both channels.  So this bug is
only observable when playing stereo files.  The corrected line should read
dev.PlaySample(buffer, read/frame_divider/channels), or at least this works for
me.  If it's dependent on the AudioDevice to know this then perhaps the
division needs to be moved into the AlsaDevice class.

Either way the fix is trivial.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list