RESOLVED: Audio Device Out Sample Rate

Hi,

I tried to get the Audio Device Out Sample rate using the rate sample member variable, and I am getting 60?

That can’t be right.

Mac High Sierra, TD 2018.27910.

Can you post a toe file or the expression you used?

Hi Rob,

here you go.

I used the .rate member, which according to the documentation, is supposed to report back the sample rate of the chop.

I am basically looking for a way to get the current Audio Out Device’s sample rate, so, I can automatically set it on other chops in my audio chain.

Thank you.
sampleRateBug.toe (3.59 KB)

Hi Mouren,
In your example file you have no data going into the Audio Device Out CHOP, and by default all CHOPs use the rate of the project (me.rate default to this) until the data is explicitly set to a different sample rate.

In my attachment here, I feed the Audio Device Out with some audio at 44100Hz and you’ll see that me.rate is then 44100Hz more like what you might expect for an audio signal.
sampleRateBug.2.toe (10 KB)

Ok. That clears things up.
Thanks.