_dspInfo.oneOnSampleRate

Discussion about the Bidule SDK, post your questions, feature request and plugins here.

Moderators: davidv, seb@plogue

dts350z
Posts: 1521
Joined: Thu Jan 15, 2009 1:18 pm

_dspInfo.oneOnSampleRate

Postby dts350z » Sat Jan 15, 2011 6:18 pm

I "assumed" _dspInfo.oneOnSampleRate meant 1/sample rate, but it seems to be 0?

Guess I'll do the division.

seb@plogue
Site Admin
Posts: 9592
Joined: Tue Mar 02, 2004 7:23 pm
Location: Montreal
Contact:

Re: _dspInfo.oneOnSampleRate

Postby seb@plogue » Mon Jan 17, 2011 10:22 am

The struct member is filled directly with what we use inside Bidule.

Are you mixing types in a way that would convert it to an integer?

dts350z
Posts: 1521
Joined: Thu Jan 15, 2009 1:18 pm

Re: _dspInfo.oneOnSampleRate

Postby dts350z » Mon Jan 17, 2011 11:08 am

No, I was using it with (float). The replacement code:

Code: Select all

Counter1_1::idle() {

   float samples, time, m, s, f, _im, _is;
   float minutes;
   float seconds;
   float frames;
   int n;
   
   samples = input[0];
   time = samples/(float)_dspInfo.sampleRate;


Return to “Bidule SDK”

Who is online

Users browsing this forum: No registered users and 3 guests