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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  ape playback sometimes output noise
« previous next »
  • Print
Pages: [1]

Author Topic: ape playback sometimes output noise  (Read 2059 times)

Offline powerpan

  • Member
  • *
  • Posts: 52
ape playback sometimes output noise
« on: December 03, 2011, 12:50:01 PM »
seem to be the sync program error, while play for a long time, it might output noise, and ffw/fbw could solve the problem..

don't know how to debug.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: ape playback sometimes output noise
« Reply #1 on: December 03, 2011, 06:53:49 PM »
What build/player are you using?  Can you describe more specifically under what circumstances you see this behavior?
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: ape playback sometimes output noise
« Reply #2 on: December 03, 2011, 07:07:04 PM »
Does it happen to all files or only certain ones?
Logged

Offline powerpan

  • Member
  • *
  • Posts: 52
Re: ape playback sometimes output noise
« Reply #3 on: December 13, 2011, 09:03:09 AM »
not special files but seem any files it could decode will have this problem while play for a long time.
at lost sync, just seek, will bring it back to sync state.

I'm building codecs as linux plug-in, all other codecs did not met this problem except APE.codecs, so I use monkey's audio and build a monkey.codec, it takes 450M cpu to decode C4000 ape, rockbox's engine is good at efficiency(like 250-270M cpu @ C4000) but not good for incompatibility.

I made up upnp control for robock's engine. so I could use ixxx//android to control playback lol.

Post Merge: December 13, 2011, 09:08:34 AM
though I output detail information but this problem shows up without any error messages nor any signs. don't know how to get the bug out.
playing a ape + cue will sometimes encounter this problem after play for a long time like hours.

Quote from: Chronon on December 03, 2011, 06:53:49 PM
What build/player are you using?  Can you describe more specifically under what circumstances you see this behavior?
« Last Edit: December 13, 2011, 09:08:34 AM by powerpan »
Logged

Offline powerpan

  • Member
  • *
  • Posts: 52
Re: ape playback sometimes output noise
« Reply #4 on: December 14, 2011, 12:16:20 PM »
I do have some 3980 c2000 ape files output noise. but too large for the file and don't know where to send.

seem there will be noise for some specified file, format 3990 C2000.
« Last Edit: December 14, 2011, 09:01:05 PM by powerpan »
Logged

Offline powerpan

  • Member
  • *
  • Posts: 52
Re: ape playback sometimes output noise
« Reply #5 on: April 10, 2012, 09:32:39 PM »
found if do not use asm codes, problem solved...

today the problem show in the none-asm version
« Last Edit: May 21, 2012, 01:32:06 AM by powerpan »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: ape playback sometimes output noise
« Reply #6 on: April 10, 2012, 10:35:45 PM »
Was this ARM or x86?
Logged

Offline powerpan

  • Member
  • *
  • Posts: 52
Re: ape playback sometimes output noise
« Reply #7 on: May 20, 2012, 12:55:15 PM »
we did a lot try to find out the problem, platform is arm926ejs, running @ 456MHz, linux 2.6.33rc4

result is:

use arm-none-linux-gnueabi-gcc(codesourcery) , with asm while decoding APE c400 will have 55% cpu
witout asm 88% cpu

use arm-arago-linux-guneabi-gcc, with/without asm will have almost the same CPU like 79%-80%

conclusion:
no matter use asm or no asm, noise will sometimes come out.
old compiler provide better performance.
problem comes random, hard to debug, but when noise comes out, seek will resync the output to normal.


but this problem might not be solved in a short time because APE has license problem...


Post Merge: May 21, 2012, 04:39:39 AM
I'm doubting if the buffer of the decode is not enough and while buffer exceeds limits, sometimes will go wrong.
like there is a seed from the decoder, and everytime load a song/seek, it will sync the seed, and sometimes the seed will be flush, later will look into the codes and try to solve the problem.


« Last Edit: May 28, 2012, 09:55:50 PM by powerpan »
Logged

Offline powerpan

  • Member
  • *
  • Posts: 52
Re: ape playback sometimes output noise
« Reply #8 on: January 04, 2013, 11:23:39 AM »
Quote from: saratoga on April 10, 2012, 10:35:45 PM
Was this ARM or x86?

arm, none of the business of the asm code, none asm will go wrong too
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  ape playback sometimes output noise
 

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

Page created in 0.705 seconds with 14 queries.