Home > English, Linux & Programming > Solving Sound Problems with Dosbox in Ubuntu 8.10 and 9.04

Solving Sound Problems with Dosbox in Ubuntu 8.10 and 9.04

Hey guys, since I get a lot of hits to this article, I’d really appreciate if you leave a short note when this helped you, so we can see if this is a general configuration problem. Thanks!

Since ubuntu 8.10 I was having stuttering sound with dosbox. I just made a fresh install of 9.04 and still was experiencing such problems (pulseaudio ftw again…). I searched the web, alas was unable to find a solution that was actually working. After trying a couple of things, I finally seem to have found a solution which is working (at least for me): I set the mixing rate within dosbox to match that of pulseaudio. To make it short, change your conf in ~/.dosbox/ to

[mixer]
#   nosound: Enable silent mode, sound is still emulated though.
#      rate: Mixer sample rate, setting any device's rate higher than this will probably lower their sound quality.
#            Possible values: 22050, 44100, 48000, 32000, 16000, 11025, 8000, 49716.
# blocksize: Mixer block size, larger blocks might help sound stuttering but sound will also be more lagged.
#            Possible values: 2048, 4096, 8192, 1024, 512, 256.
# prebuffer: How many milliseconds of data to keep on top of the blocksize.

nosound=false
#rate=22050
rate=44100      # Change this line
blocksize=2048
prebuffer=10

Also, to get rid of the initial midi warning I changed the following, though it may not be necessary:

[midi]
#     mpu401: Type of MPU-401 to emulate.
#             Possible values: intelligent, uart, none.
# mididevice: Device that will receive the MIDI data from MPU-401.
#             Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.
# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use. See README for details.

mpu401=intelligent
mididevice=default
midiconfig=128:0      # Change this line

Yet another pulseaudio problem solved.

Update: Also, setting output to opengl helps a lot, at least if you have compiz enabled.

  1. October 18th, 2019 at 11:25 | #1

    Buy Nizagara Online Canada Online Pharmacy Cephalexin Purpose Of online pharmacy How To Take Amoxicillin Secure Cheap Amoxicilina Discount Canada Amex Cod Accepted Para Que Sirve La Propecia

  1. September 27th, 2019 at 19:28 | #1
  2. September 28th, 2019 at 10:19 | #2
  3. September 30th, 2019 at 12:30 | #3
  4. October 4th, 2019 at 15:30 | #4
  5. October 7th, 2019 at 11:59 | #5
  6. October 7th, 2019 at 19:38 | #6
  7. October 8th, 2019 at 19:47 | #7
  8. October 9th, 2019 at 22:54 | #8
  9. October 10th, 2019 at 08:58 | #9
  10. October 11th, 2019 at 01:43 | #10
  11. October 13th, 2019 at 17:04 | #11
  12. October 13th, 2019 at 18:44 | #12
  13. October 13th, 2019 at 20:37 | #13
  14. October 14th, 2019 at 04:24 | #14
  15. October 17th, 2019 at 14:25 | #15
  16. October 17th, 2019 at 16:12 | #16
  17. October 18th, 2019 at 02:18 | #17
  18. October 18th, 2019 at 19:24 | #18
  19. October 20th, 2019 at 01:37 | #19

*