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
| |-+  Recording
| | |-+  Recording Enhancements Pack
« previous next »
  • Print
Pages: 1 ... 9 10 [11] 12 13 ... 63

Author Topic: Recording Enhancements Pack  (Read 364634 times)

Offline NPswimdude500

  • Artist
  • Member
  • *
  • Posts: 180
  • SWIM!
Re: Recording Enhancements Pack
« Reply #150 on: March 08, 2006, 02:57:06 PM »
I haven't read all of this thread, so this might have been suggested already, but since there's space, would it be possible to include the name of the recorded file in the recording screen?


^since there's room, how 'bout a line that says something like "Name: rec_0001.wav" ?
Logged
iHP-130 Owner

"Some say I'm paranoid, I say I'm careful how I choose my friends. I been ta ICU once, I ain't goin' again"

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Recording Enhancements Pack
« Reply #151 on: March 08, 2006, 04:25:10 PM »
Quote from: vinylivo on March 07, 2006, 07:24:03 PM
Quote from: vinylivo on March 07, 2006, 06:27:42 AM
Not shure if this is related to the enhancement pack or not.

There is a problem with automatic file splitting during recording if it should split at max. file size (max. 2GB FAT file size - 1MB).

I found the bug. It's not related to the enhancement pack at all. The bug is in 'pcm_recrd.c' in function 'pcmrec_start()':

Line 644 is wrong:
Code: [Select]
    num_rec_bytes = 0;

it should be:
Code: [Select]
    num_rec_bytes = pre_chunks * CHUNK_SIZE;
to take the prerecorded chunks into account.

Right. I wrote a long answer on this and reviewed the code while writing. As a result I got logged out before posting and my answer is lost. Damn.

To keep the long answer short: the bug is that num_rec_bytes is used in the recording screen (imho the wrong place) to determine file splitting.

I'll keep it like that for now as it involves too much rewriting... your bugfix should do.

I'll also increase the margin while I'm at it ;)

edit: I think I messed this one up as well when trying to increase peak detection sensitivity...

edit2: margin is fine I think, so I'll leave it like that
« Last Edit: March 08, 2006, 05:07:23 PM by petur »
Logged

Offline vinylivo

  • Member
  • *
  • Posts: 125
Re: Recording Enhancements Pack
« Reply #152 on: March 09, 2006, 07:25:01 PM »
Thanks for comitting fix, other users will be even more thankful than me because I can always use a patch otherwise.

I don't know what you mean by 'the bug is that num_rec_bytes is used in the recording screen (imho the wrong place)...' because in my thinking this variable should reflect the number of recorded bytes. And the prerecorded bytes are a part of it in the event of starting an actual recording.
I agree there could be other ways of determining file splitting, perhaps by a get_file_size function or something similar.
Logged

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Recording Enhancements Pack
« Reply #153 on: March 10, 2006, 05:17:47 AM »
Quote from: vinylivo on March 09, 2006, 07:25:01 PM
I don't know what you mean by 'the bug is that num_rec_bytes is used in the recording screen (imho the wrong place)...' because in my thinking this variable should reflect the number of recorded bytes.
Well, there is also a variable that holds the number of bytes written to file, and somehow I feel that variable (and location) is more suited for file splitting. Now the gui thread decides this...
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #154 on: March 10, 2006, 02:48:19 PM »
By jove...you know what? I think I've done it!!!..........

Although, I am very excited, and when I'm excited I say things that I regret later because I then find that I haven't done it at all!!  :D

I also talk a lot of rubbish!
 :D

I must now eat, then I'll look again to check whether I really have done it and do a spot of tidying up and re-naming of strange variables. Then I'll put a patch up that you can all test and tell me of any problems you find.

And Petur, I'll start the long process of compiling for all those targets  ;)
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline groovetube66

  • Member
  • *
  • Posts: 6
Re: Recording Enhancements Pack
« Reply #155 on: March 10, 2006, 03:21:40 PM »
Hi all.  Just got my ihp-120 and have been following these threads about recording for a while.  Got a couple of questions:

  • With Rockbox + recording enhancments patch is there no longer a setting for ext. mic?  I saw mic and line in.  I tried a test recording using line in and Audio Technica Pro24 stereo electret mic both with and without the 1.5v battery.  The sound was good but levels were low.  Turning up the gain so that digital gain was in effect caused noticeable hiss... or was I hearing the mic self-noise?
  • Is there a build that contains the Recording Enhancements with the multiple AGC settings and peak metering?
  • Is there a playback setting so you can see the same peak level meters you see while recording?

This Rockbox and iRiver is cool stuff.  If someone ever writes the code for multitrack recording with sync it will be even more amazing.
Logged

Offline NPswimdude500

  • Artist
  • Member
  • *
  • Posts: 180
  • SWIM!
Re: Recording Enhancements Pack
« Reply #156 on: March 10, 2006, 03:30:36 PM »
Quote from: groovetube66 on March 10, 2006, 03:21:40 PM
Is there a build that contains the Recording Enhancements with the multiple AGC settings and peak metering?

There most certainly is!
http://homepage.sunrise.ch/mysunrise/remartinelli/html/rockbox.html

pilot000 from Misticriver compiles an "optimized" version of the bleeding edge builds. It's more of an experimental build, but it includes that patch as well as a few other neat todbits....
(discussion on MR: http://www.misticriver.net/showthread.php?t=36943)
Logged
iHP-130 Owner

"Some say I'm paranoid, I say I'm careful how I choose my friends. I been ta ICU once, I ain't goin' again"

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #157 on: March 10, 2006, 05:55:23 PM »
Ok then.... It appears that I really have done it! I wasn't dreaming.

So here is the (hopefully) CVS commitable version of the remote support patch.

It would be fantastic if some people could test it and tell me if they notice anything odd or give any other comments. (whataboutbob how about it? ;))

The peakmeter is enabled in the rWPS now too (just type %pm in your chosen position)

I haven't made any pre-compiled builds yet for you non-patchers to try and I won't replace the patches in post#1 yet either... not until I'm convinced nothing is amiss with it!  :)
also no changeable fonts version yet (although I couldn't resist doubling the peakmeter size  :D)

I've still got to do loads of testing to make sure it compiles and runs on all the other targets too before it can be committed...

Enjoy...  :)

[attachment deleted by admin, too old]
« Last Edit: March 10, 2006, 05:56:57 PM by Mmmm »
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline bennis

  • Member
  • *
  • Posts: 5
Re: Recording Enhancements Pack
« Reply #158 on: March 11, 2006, 04:02:09 AM »
Wow! I have installed the new build with the agc functions on it. I will be testing today during a concert:) so far looks good! On inputs I can;t however choose for mic input ... only line and buildin mic...

I like the histogrammy thing...gives a smooth idea about the levels .. even without recording it works:) GREAT tool
Logged

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Recording Enhancements Pack
« Reply #159 on: March 11, 2006, 08:36:38 AM »
mic = internal mic (mono)
line-in = line-in connector

However, the line-in connector supplies power for an external mic, in fact the iriver firmware 'line-in' and 'ext-mic' are nothing more than the line-in with a different gain range.

I don't know what voltage the h1xx puts on the line-in connector but my h340 gives a bit more than 3V (so better than external 1,5V power!)
Logged

Offline paulheu

  • Member
  • *
  • Posts: 213
Re: Recording Enhancements Pack
« Reply #160 on: March 11, 2006, 02:09:31 PM »
Am I right to assume the new peakmeter patch will require a new agc patch as well? it seems at first glance some stuff changed enough to break the current agc patch..
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #161 on: March 11, 2006, 02:29:56 PM »
New version...now compiles under every target (except the ones that won't compile anyway (12 & 20).

Oh and I haven't tested 5 or 6 because I couldn't get the versions of binutils and gcc to make the crosscompiler to test them with...

But apart from that it is just about perfect I think... Anyone found any problems yet?

paulheu: Yes I think it will break the present AGC patch..but that's life eh?  :)

[attachment deleted by admin, too old]
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline paulheu

  • Member
  • *
  • Posts: 213
Re: Recording Enhancements Pack
« Reply #162 on: March 11, 2006, 04:00:55 PM »
Quote from: Mmmm on March 11, 2006, 02:29:56 PM
paulheu: Yes I think it will break the present AGC patch..but that's life eh?  :)

It is.. but since I prefer to have agc available I will have to hold off on a test run..  ;)
Logged

Offline paulheu

  • Member
  • *
  • Posts: 213
Re: Recording Enhancements Pack
« Reply #163 on: March 12, 2006, 06:51:09 AM »
I've been fiddling with the agc patch and actually have it working with the new peakmeter/remote patch. Oddly though I only get two letters and some (gain) values in the AGC mode display on the screen.. Things seem to work fine it's just the  display that's odd..

I've attached the patch I've done. As this is my first 'actually change code' patch I hope I'm not breaking anything .. ;) I'm only trying to learn something here.. so shoot me if I am being silly..;)

EDIT: removed the patch.. It's no longer valid..
« Last Edit: March 13, 2006, 04:01:06 PM by paulheu »
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #164 on: March 12, 2006, 06:31:09 PM »
Paulheu...just quickly looking at your patch... I think that for the following part:

Code: [Select]
+                    lcd_puts_style(0, 7, buf, STYLE_INVERT);
+                else
+                    lcd_puts_style(0, 6, buf, STYLE_INVERT);
+ }
+            else
+            {
+                if(global_settings.rec_source != SOURCE_MIC)
+                    lcd_puts(0, 7, buf);
+                else
+                    lcd_puts(0, 6, buf);
             }
instead of using 6 & 7, try using 7 & 8...

(looks as if the gain settings and AGC mode are printing on the same line!)
Could be wrong though....   :D
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

  • Print
Pages: 1 ... 9 10 [11] 12 13 ... 63
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Recording
| | |-+  Recording Enhancements Pack
 

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

Page created in 0.114 seconds with 14 queries.