Search found 13 matches

by myQwil
Tue Nov 24, 2020 10:38 pm
Forum: Support and Development
Topic: Get the sample rate of the default playback audio device
Replies: 7
Views: 6374

Re: Get the sample rate of the default playback audio device

LuaPd https://github.com/myQwil/luapd It's a spiritual successor to love-pd-audio https://github.com/ghoulsblade/love-pd-audio That project was updated 7 or 8 years ago so it's been in need of an update. So far I've only worked on it in a Linux environment. At some point I hope to build it for Windo...
by myQwil
Tue Nov 24, 2020 7:21 pm
Forum: Support and Development
Topic: Get the sample rate of the default playback audio device
Replies: 7
Views: 6374

Re: Get the sample rate of the default playback audio device

That works, thank you :) I needed to make a slight change to get it working: buf = Buffer(4) local ALC_FREQUENCY = 0x1007 local context = liblove.alcGetCurrentContext() local device = liblove.alcGetContextsDevice(context) liblove.alcGetIntegerv(device, ALC_FREQUENCY, 1, buf:ptr()) print(buf:at(0)) B...
by myQwil
Mon Nov 23, 2020 7:43 pm
Forum: Support and Development
Topic: Get the sample rate of the default playback audio device
Replies: 7
Views: 6374

Get the sample rate of the default playback audio device

I'm currently working on some real-time audio generation and I want the sample rate to be whatever the playback device's sample rate happens to be, so as to prevent resampling from occurring. I want to avoid hard-coding the sample rate to an arbitrary amount like 44100 or 48000. Is there a way to re...