Rockbox Technical Forums

Support and General Use => Recording => Topic started by: manekineko on April 01, 2009, 04:18:25 PM

Title: Trigger Problems
Post by: manekineko on April 01, 2009, 04:18:25 PM
Could I get help with the Trigger feature?  I'm not sure if I'm misunderstanding something, or if in fact the feature isn't working as described.

I have Trigger set to repeat, with a new file.  Starts above -34dB for 2s, and stops below -40dB for 2s.  Pre-split gap set to 2s.

When it starts out, all appears well.  I press the record button on the Recording screen, and the trigger status bar appears, size remains at 0, and filename is blank.  As long as I don't make noise for 2 consecutive seconds, it doesn't record.  I start making noise and the trigger status bar starts filling up, and size remains at 0.  Once I make noise for 2 full seconds, it starts recording, creates a file and size starts increasing.

So far so good.  However, once I stay quiet for 2s, and the trigger status bar empties out again, instead of going back into the waiting state, it immediately starts a new file, with a new filename, and the size starts incrementing.  During this, the trigger status bar remains empty unless I make noise.  If I make noise for 2s, then it'll fill up and start a new file.  Once I stop making noise for 2s and it empties out again, it starts another new file.  It never just sits and waits for a trigger to start recording.  Once it's been triggered once it is always recording something.  This isn't the correct functionality is it?

Could this be related to the presplit gap setting?  I admit I don't really understand the manual's explanation that once this time is hit, a new recording "may" be starts (may depending upon what?).   I don't think it's related though, because I've tried setting that to 0, 2, and 30 and the behavior I described remains.
Title: Re: Trigger Problems
Post by: mark963 on June 15, 2009, 07:31:15 PM
I'm running version r21281-090613 and I have exactly the same problem when using the "New File" trigger type.  Once a recording is trigger, it seems to record the way I expect - it prerecords for the right amount of time, it requires a level of so high for so long before it triggers, it then waits for the level to drop below the stop level for at least so many seconds...

Then it creates another file and just starts recording forever.  It never goes back to the "pre-trigger" state.

If I change the TrigType to "pause" then it works as expected, except that sometimes it joins multiple trigger events into one file, and sometimes it makes new files for each event.  At least that is somewhat functional.  However, with a 2 second pre-record and a 5 second minimum recording, after 30 seconds or so of recordings, it says "The disk if full.  Press PREV to continue."  Of course, it has about 870MB free.  I tried changing from mp3 to wav format it put 22 more files, 2.3mB on the disk (with the 15 mp3's still there) and reported the disk was full again. 

I also note that recorded files end up on the root of the drive, and when I select "Clear Recording Directory" under Recording Settings, it does not delete them. 

add on.....

I played with it for some time and found that setting the trigger type to stop and the Presplit Gap to the same as the "for at least" time seemed to make it work more like I wanted.  Now it samples ahead for x seconds (prerecord time) and then records for x seconds after a loud enough sound occurs (for at least) and it will keep recording if sounds re-occur during that interval.  Then it will stop and pretrigger (like scope) until the next sound that exceeds the threshold occurs.  There is a fair amount of background noise on this Sansa, but I've heard worse for general purpose gear. 
Title: Re: Trigger Problems
Post by: petur on June 16, 2009, 03:51:44 AM
I'm not a trigger user so I didn't notice there was a problem. I'll look into this...