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
| |-+  Recording
| | |-+  Gain logging
« previous next »
  • Print
Pages: [1]

Author Topic: Gain logging  (Read 3657 times)

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Gain logging
« on: September 23, 2007, 06:38:18 PM »
I'm implementing gain logging and would like your opinion.

Current implementation:
- write to a logfile on every gain change
- logs time offset (in ms), left gain and right gain
- tab separated
- logfile has same name as recording but ends with .log
- file is written to disk when recording is flushed to disk or gain log buffer full
- keeps 50 gain changes in memory to reduce disk spinup

let me know what's missing/overlooked. The code is not ready so nothing to try yet.
Logged

Offline lenny

  • Member
  • *
  • Posts: 190
Re: Gain logging
« Reply #1 on: September 23, 2007, 06:47:59 PM »
Quote from: petur on September 23, 2007, 06:38:18 PM
- logs time offset (in ms), left gain and right gain
Might samples be better (more accurate)?

Edit: Oh and this
http://forums.rockbox.org/index.php?topic=2513.msg44075#msg44075
« Last Edit: September 23, 2007, 07:48:14 PM by lenny »
Logged

Offline Davide-NYC

  • Member
  • *
  • Posts: 429
Re: Gain logging
« Reply #2 on: September 23, 2007, 11:26:59 PM »
Logging should not increase disk spin-up frequency.
Whenever the HD needs to spin up to write audio the current "in memory" logs should be written to disk as well.

Was that at all clear?  ???
Logged
Currently: iRiver H132-RTC-CFMod

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Gain logging
« Reply #3 on: September 24, 2007, 03:41:10 AM »
Quote from: Davide-NYC on September 23, 2007, 11:26:59 PM
Logging should not increase disk spin-up frequency.
Whenever the HD needs to spin up to write audio the current "in memory" logs should be written to disk as well.
That was my 5th point, probably also not very clear ;)
Logged

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Gain logging
« Reply #4 on: September 24, 2007, 03:42:52 AM »
Quote from: lenny on September 23, 2007, 06:47:59 PM
Might samples be better (more accurate)?
That is next to impossible because the data is transferred in chunks using DMA. It will be already hard to have some accurate time in ms...
Logged

Offline pabouk

  • Member
  • *
  • Posts: 387
Re: Gain logging
« Reply #5 on: September 28, 2007, 06:42:34 PM »
Thank you Petur. I think that this is a very important function for recording.

Quote from: petur on September 24, 2007, 03:42:52 AM
Quote from: lenny on September 23, 2007, 06:47:59 PM
Might samples be better (more accurate)?
That is next to impossible because the data is transferred in chunks using DMA. It will be already hard to have some accurate time in ms...
Cannot the DMA controller of the codec chip return the current status (and the sample number) on request?

What I would like to have:
What about logging also the type of the gain change manual / AGC and the AGC type / preset?
Logged

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Gain logging
« Reply #6 on: October 01, 2007, 08:23:03 AM »
Quote from: pabouk on September 28, 2007, 06:42:34 PM
Cannot the DMA controller of the codec chip return the current status (and the sample number) on request?

What I would like to have:
What about logging also the type of the gain change manual / AGC and the AGC type / preset?
1) no: at best it could be checked every transferred chunk but this would make it quite complex because you can't do much in the dma handler. so it would set a flag, wait for the dma handler to report the number of samples and then continue writing the log file....

2) no: the type of change would have to be passed through all layers, and I wouldn't know why you'd want to know it anyway.

I'm open to discussion, however ;)
Logged

Offline Davide-NYC

  • Member
  • *
  • Posts: 429
Re: Gain logging
« Reply #7 on: October 10, 2007, 05:18:06 PM »
Petur, buzz me whenever you have a bit of code to test. I'd be happy to help out in that regard.
Logged
Currently: iRiver H132-RTC-CFMod

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Gain logging
« Reply #8 on: October 10, 2007, 07:01:50 PM »
sure...

have been non-active again so there will be some delay :/

too much to do, life ought to have 48 hours in a day (at least)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Recording
| | |-+  Gain logging
 

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

Page created in 0.086 seconds with 15 queries.