Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#10135 - X-Y Scope Plugin

Attached to Project: Rockbox
Opened by Tony Huynh (insanepotato) - Wednesday, 15 April 2009, 12:41 GMT+2
Task Type Patches
Category Plugins
Status Unconfirmed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Private No

Details

I brutally hacked the Oscilloscope to pieces and tried to make an x-y scope.

Please feel free to edit and contribute because I honestly have very limited knowledge of PCM data and the inner workings of rockbox =]
   xyscope.diff (16 KiB)
 apps/plugins/SOURCES    |    3 
 apps/plugins/CATEGORIES |    2 
 apps/plugins/xyscope.c  |  474 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 478 insertions(+), 1 deletion(-)

This task depends upon

Comment by Boris Gjenero (dreamlayers) - Wednesday, 15 April 2009, 21:47 GMT+2
Here's a modified patch, which uses code from  FS#10065  to obtain actual samples on SWCODEC targets. I don't know if there is a way to get samples from the MAS on HWCODEC targets, so the scope is still based on peaks there. I've tested it on 5G sim, 5G 30GB iPod and Archos V2 Recorder.

On the 5G and 5G sim, I can clearly see some parts of http://kapsi.fi/~jpa/stuff/other/youscope-wave.flac (for what it should look like, see http://www.youtube.com/watch?v=s1eNjUgaB-g ). Some music is uninteresting; when both channels are very similar, the display is just a diagonal line.

I feel this could still use more work. For example: more dots could be plotted, in a more optimized way, and the LCD doesn't have to be updated for every dot.
   xyscope-pcmdata.patch (2.5 KiB)
 apps/plugins/CATEGORIES |    2 ++
 apps/plugins/SOURCES    |    3 ++-
 apps/plugin.c           |    1 +
 apps/plugin.h           |    1 +
 firmware/export/pcm.h   |    1 +
 firmware/pcm.c          |    5 +++++
 6 files changed, 12 insertions(+), 1 deletion(-)

Comment by Robert Kukla (roolku) - Sunday, 19 April 2009, 17:27 GMT+2
The file xyscope.c seems to be missing from the patch. :(
Comment by Boris Gjenero (dreamlayers) - Sunday, 19 April 2009, 18:10 GMT+2
Oops, sorry. "svn diff" doesn't notice new files.
   xyscope.c (14.8 KiB)
Comment by Robert Kukla (roolku) - Sunday, 19 April 2009, 18:28 GMT+2
Thank you. You need to "svn add" new files before they show up in svn diff.
   xyscope-pcmdata.patch (18.1 KiB)
 apps/plugins/xyscope.c  |  498 ++++++++++++++++++++++++++++++++++++++++++++++++
 apps/plugins/CATEGORIES |    2 
 apps/plugins/SOURCES    |    3 
 apps/plugin.c           |    1 
 apps/plugin.h           |    1 
 firmware/export/pcm.h   |    1 
 firmware/pcm.c          |    5 
 7 files changed, 510 insertions(+), 1 deletion(-)

Loading...