Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 15:46
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
mhWaveEdit cutdown available if wanted
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: 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.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
ttuuxxx


Joined: 05 May 2007
Posts: 10829
Location: Ontario Canada,Sydney Australia

PostPosted: 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 Smile
ttuuxxx
libsamplerate-0.1.2.tar.gz
Description 
gz

 Download 
Filename  libsamplerate-0.1.2.tar.gz 
Filesize  691.28 KB 
Downloaded  381 Time(s) 

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send_private_message Visit_website 
zigbert


Joined: 29 Mar 2006
Posts: 5754
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send_private_message Visit_website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: 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?

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: 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." ;
mh.png
 Description   limits top choice
 Filesize   20.66 KB
 Viewed   657 Time(s)

mh.png


_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Jump to:  

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
[ Time: 0.0562s ][ Queries: 13 (0.0087s) ][ GZIP on ]