Re: [LAD] [ANN] LV2 beta3

From: Steve Harris <steve@email-addr-hidden>
Date: Thu May 10 2007 - 17:58:25 EEST

On 10 May 2007, at 08:35, Richard Spindler wrote:

> 2007/5/10, Dave Robillard <drobilla@email-addr-hidden>:
>> Regarding the one sensible thing you /have/ said: is sample rate
>> as a
>> double sufficient, or is there a good reason for numerator/
>> denominator
>
> using a double as samplerate is highly undesirable, because for
> example someone might want to test for specific samplerates, like
>
> if ( samplerate == 44100) { ... }
>
> And this cannot be done with a float value with the necessary
> "exactness". ;-)
>
> I do support the proposal to use two integer values.

I don't support it unless someone has a representation issue. You're
not like to see if (fs == 44100) anyway, and if you did you'd want to
hedge a bit: if (fs > 44090 && fs < 44110). If you have to write if
(fs_num / fs_denom == 44100) then things are bit dodgy anyway.

Whew, a lot of ifs.

- Steve
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
Received on Thu May 10 20:15:03 2007

This archive was generated by hypermail 2.1.8 : Thu May 10 2007 - 20:15:03 EEST