The time now is Tue 18 Jun 2013, 21:15
All times are UTC - 4 |
| Author |
Message |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: Mon 05 Apr 2010, 11:30 Post_subject:
mhWaveEdit cutdown available if wanted Sub_title: interest in smaller package without "high" sample rates |
|
I was able to cut down libsamplerate by over 1MB by removing the high sample rates... then, since mhwaveedit was the only program using it, I went ahead and compiled it in statically with only support for low and medium level support (it compiled fine with no errors using the cutdown libsamplerate).
If you want to know why, take a look at the corresponding 8MB header file in the sources - there has to be a better way to code these than a gigantic pseudo-array - a mathematical formula or something.
If there is any interest in either the cutdown libsamplerate or mhwaveedit I will post as a separate package.
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: Mon 05 Apr 2010, 23:47 Post_subject:
Re: mhWaveEdit cutdown available if wanted Sub_title: interest in smaller package without "high" sample rates |
|
| technosaurus wrote: | I was able to cut down libsamplerate by over 1MB by removing the high sample rates... then, since mhwaveedit was the only program using it, I went ahead and compiled it in statically with only support for low and medium level support (it compiled fine with no errors using the cutdown libsamplerate).
If you want to know why, take a look at the corresponding 8MB header file in the sources - there has to be a better way to code these than a gigantic pseudo-array - a mathematical formula or something.
If there is any interest in either the cutdown libsamplerate or mhwaveedit I will post as a separate package. |
I like the older libsamplerate, it might not be as good, but its way smaller, around 100kb pet size, here's the sources if you want
ttuuxxx
| Description |
|

Download |
| Filename |
libsamplerate-0.1.2.tar.gz |
| Filesize |
691.28 KB |
| Downloaded |
285 Time(s) |
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games

|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5291 Location: Valåmoen, Norway
|
Posted: Tue 06 Apr 2010, 11:13 Post_subject:
|
|
What is exactly the high samplerates ? - Compared to low and medium.
Do you have any numbers?
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: Tue 06 Apr 2010, 19:47 Post_subject:
|
|
They are actually referred to as slow_high_qual_coeffs_s
begins with
/*
** f = make_src_filter (cycles = 69, incr = 2381, atten = 160.000000)
**
** Stop band atten. : 154.67 dB
** -3dB band width : 1.922
** half length : 340238
** increment : 2381
*/
static const struct slow_high_qual_coeffs_s
{ int increment ;
coeff_t coeffs [340239] ;
} slow_high_qual_coeffs =
{ 2381,
{
9.657284235393746030e-01,
9.657281621412726613e-01,
9.657273779472256292e-01,
.... ends with (about 34,000 lines later) ....
-1.063995337710716955e-11,
-7.606277514128185034e-12,
-4.574900362231218435e-12,
0.0 /* Need a final zero coefficient */
}
} ; /* high_qual_coeffs */
if I were back in school I could enter the point into Mathematica to get the formula and make an approximation
to patch I simply commented out some stuff in src_sinc.c
#include "high_qual_coeffs.h"
and the lines between
case SRC_SINC_BEST_QUALITY :
and
break;
but it may be better to just cut and paste the medium quality code or use
return SRC_ERR_BAD_CONVERTER ;
maybe someone who actually codes in C can advise?
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: Tue 06 Apr 2010, 20:24 Post_subject:
|
|
here is the explanation
SRC_SINC_FASTEST : "Band limited sinc interpolation, fastest, 97dB SNR, 80% BW." ;
SRC_SINC_MEDIUM_QUALITY :"Band limited sinc interpolation, medium quality, 121dB SNR, 90% BW." ;
SRC_SINC_BEST_QUALITY :"Band limited sinc interpolation, best quality, 145dB SNR, 96% BW." ;
| Description |
limits top choice |
| Filesize |
20.66 KB |
| Viewed |
533 Time(s) |

|
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
|
|
|
Rules_post_cannot Rules_reply_cannot Rules_edit_cannot Rules_delete_cannot Rules_vote_cannot You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|