Michael Sevakis
d56999890f
Make PCM->driver interface about as simple as it will get. Registered callback, zero data, alignment and stops are handled entirely inside pcm.c; driver merely calls fixed pcm.c callback. Remove pcm_record_more and do it just like playback; the original reason behind it isn't very practical in general. Everything checks out on supported targets. There wer some compat changes I can't check out on many unsupoorted but if there's a problem it will be a minor oops. Plugins become incompatible due to recording tweak-- full update. Sorted API.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26253 a1c6a512-1295-4272-9138-f99709370657
2010-05-24 16:42:32 +00:00
Thomas Martitz
20e9d56ba5
S#10387 - Rework pluginlib actions
...
It changes pluginlib actions to contain only a single and simple context (and
other one for remote directional buttons),
consisting of 7(9) buttons: up/down/left/right, select OR short select and long
select, exit and cancel (plus 2 for scrollwheel targets).
This ensures contexts don't clash with other contexts and simplifies them, at
the expense of reduced versatility. However, the versatility made it largely unusable
due to the great number of targets.
This should allow for using pluginlib actions safely for the most simple plugins (e.g. almost all demos).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26202 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 17:41:28 +00:00
Michael Sevakis
3d1a85695b
Give pitch_detector the IRAMming it deserves.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26018 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 12:35:05 +00:00
Michael Sevakis
d665c92652
Cache align the pitch detector audiobuffer where needed. Some other misc. changes to try to make sure everything builds.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26011 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 08:44:07 +00:00
Michael Sevakis
ef0b8caac0
Fix some sim warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26006 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 06:41:40 +00:00
Michael Sevakis
7250405c70
pitch_detector: Use continuous recording, even if the algorithm is too slow for that and record a whole buffer even if the min frequency is higher. Use the minimum samplerate that allows C-4186 to be detected (usually 11.025kHz, which can reduce computational load to 1/16 compared to 44.1kHz). Get rid of 64-bit multiplies when calculating input RMS value. Stop audio playback when entering plugin. Better backlight and CPU frequency handling. audio_sample_type->int16_t. simpler buffer size rounding.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26005 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 06:25:40 +00:00
Rafaël Carré
289b6bdb69
fix pitch_detector: recording will stop itself if the callback returns <0
...
stopping recording 2 times might have harmful effects
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26002 a1c6a512-1295-4272-9138-f99709370657
2010-05-13 21:32:06 +00:00
Thomas Martitz
c61e89c0ed
Make creat() posix compliant API-wise. Shouldn't affect the core as it's wrapped via a static inline.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 17:35:04 +00:00
Rafaël Carré
4fd9038d35
pitch_detector: fix builds on monochrome targets, remove an unused variable
...
Add icons for Clip, copied from c200 icons
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25397 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 23:50:07 +00:00
Nils Wallménius
f76b5d5490
Fix division by 0 by clamping freq value a little higher, some minor style and whitespace changes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23850 a1c6a512-1295-4272-9138-f99709370657
2009-12-05 01:00:47 +00:00
Dave Chapman
0d81702f52
Don't assume AUDIO_SRC_MIC always exists.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22907 a1c6a512-1295-4272-9138-f99709370657
2009-10-04 02:31:27 +00:00
Alexander Levin
72578ef558
Clarify the unit of note frequency
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22760 a1c6a512-1295-4272-9138-f99709370657
2009-09-20 17:10:16 +00:00
Alexander Levin
8163ddeb7e
Pitch Detector: group note related data together
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22758 a1c6a512-1295-4272-9138-f99709370657
2009-09-20 17:03:30 +00:00
Alexander Levin
16cb628eb7
Pitch Detector: use special functions for choosing bool values
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22755 a1c6a512-1295-4272-9138-f99709370657
2009-09-20 16:33:24 +00:00
Alexander Levin
46bb567ec4
Pitch Detector: add the possibility to set the reference frequency of A (last part of FS#8768)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22753 a1c6a512-1295-4272-9138-f99709370657
2009-09-20 16:16:32 +00:00
Alexander Levin
c38f6072cc
UI improvements for the pitch detector (ongoing work by David Johnston from FS#8768)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22685 a1c6a512-1295-4272-9138-f99709370657
2009-09-12 21:19:17 +00:00
Alexander Levin
af23b06b7c
New plugin: pitch detector (FS#8768) by Michael Lechner and David Johnston
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22663 a1c6a512-1295-4272-9138-f99709370657
2009-09-08 16:45:05 +00:00