maximum sample value

View: New views
2 Messages — Rating Filter:   Alert me  

maximum sample value

by Matt Flax-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

I am wondering what the maximum sample value is within jack.

I did a printf of the sample data within the process callback function
and nothing was bigger then 1.0.

Is it possible that +-1.0 are the largest values which the process
function would see ?

thanks
Matt

_______________________________________________
Jack-Devel mailing list
Jack-Devel@...
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org

Re: maximum sample value

by Fons Adriaensen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Aug 20, 2009 at 10:28:36PM +1000, Matt Flax wrote:

> I am wondering what the maximum sample value is within jack.
>
> I did a printf of the sample data within the process callback function
> and nothing was bigger then 1.0.
>
> Is it possible that +-1.0 are the largest values which the process
> function would see ?

The samples you get from a soundcard will be in the +/-1 range,
and the ones you send to a soundcard should be in that range to
avoid clipping.

Between jack apps you can use higher values, but all Jack
software that deals with levels (meters etc.) assume the
signal range is +/-1.

Ciao,

--
FA

Io lo dico sempre: l'Italia รจ troppo stretta e lunga.

_______________________________________________
Jack-Devel mailing list
Jack-Devel@...
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org