Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  DOOM Weird Sounds
« previous next »
  • Print
Pages: [1]

Author Topic: DOOM Weird Sounds  (Read 2867 times)

Offline moonscapex

  • Artist
  • Member
  • *
  • Posts: 75
  • Linux User - 5 Rockbox Installs
    • MoonscapeX's Build
DOOM Weird Sounds
« on: March 26, 2009, 03:51:06 PM »
After I Upgraded to rockbox 3.2, the sounds in Doom are high pitched and sound really bad.  Is there a fix for this or should I downgrade back to 3.1? ???
Logged
MoonscapeX's Build Sansa E200 (v2)   //\\  //\\oonscapeX
Rockbox Album Art Downloader          //  \\//  \\@gmail.com

Offline Thecoolgman

  • Member
  • *
  • Posts: 55
    • Xylem
Re: DOOM Weird Sounds
« Reply #1 on: March 30, 2009, 06:27:32 PM »
Yeah I'm having the same problem on my 5G.  :(
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: DOOM Weird Sounds
« Reply #2 on: March 31, 2009, 02:13:14 AM »
On my 5G, Doom sounds are at the correct pitch with r20590.  However, they have a kind of crackly distortion.  Changing SAMPLECOUNT from 128 to 256 in i_sound.c improves things somewhat, so I think the distortion is due to buffer underruns (audio data is being played faster than it's delivered).  Further increases of SAMPLECOUNT don't seem to help, so a different solution is necessary.

Edit:  Sound plays fine when sample rate is set to 11025.  Resampling to 44100 is ok on the sim, so I still think the issue is underruns.

Technical info:
wm8758.c, in audiohw_set_frequency: CLKCTRL_MCLKDIV_8,  ADDCTRL_SR_12kHz
i_sound.c: #define HW_HAVE_11
(This is just a quick experiment.  It makes your music play slow and at low frequency.  Proper support for switching sample rates seems easy and is probably coming soon.)

(Edit: No need to change BCLKDIV because BCLK already depends on SYSCLOCK.  Interesting how BCLK is faster than necessary)

Edit:  I created a patch which adds support for various sample rates on the 5G iPod.  With it, I don't get any problems with sounds in Doom.  However, it doesn't address what seems to be the root cause:  sound in plugins can underrun far too easily.  BTW.  The patch also adds support for various recording sample rates.

Edit: Sound is also glitchy in Rockbox 3.1.  Did Doom sound ever work properly on the 5G iPod?

Edit: Sample rate setting was committed in r20635.  On the 5G iPod, 11 KHz is used now and there seem to be no more underruns.
« Last Edit: April 12, 2009, 10:14:20 AM by dreamlayers »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  DOOM Weird Sounds
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.073 seconds with 15 queries.