Comments (5)
How do you retrieve the current sample rate? There's no way that I currently know how to do that from OF itself... unless something was added recently.
from ofxpd.
Right, I'm not sure what the right implementation of this would be. I'll have to think about it some more. For my current project I've replaced OF's audio engine with The Amazing Audio Engine since it's easier to manage. Right now, in the audio callback I check the sample rate and if it changed I re-init PD. It works, just wondering if there's a more elegant way of doing it within ofxPd instead.
from ofxpd.
We could add an updateSampleRate() function or something similar but unless there us a way to query the samplerate from within OF, there's not a nice way to do it otherwise.
from ofxpd.
Yeah, that makes sense. Probably an updateSampleRate() would at least make
this a little nicer. No rush on changing on anything, I just wanted to
bring up the topic.
On Wed, Nov 2, 2016 at 8:19 PM, Dan Wilcox [email protected] wrote:
We could add an updateSampleRate() function or something similar but
unless there us a way to query the samplerate form within OF, there's not a
nice way to do it otherwise.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#50 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMdd3hxzvgXtRU-c3B0sqHQVNtnzkpjks5q6VKpgaJpZM4Kn52I
.
Seth Sandler
- Blog: sethsandler.com
- Twitter: www.twitter.com/sethsandler
- Linkedin: http://www.linkedin.com/in/sethsandler
- Skype: sethsandler
from ofxpd.
Closing for now. Please reopen if we get the sample rate functionality in OF.
from ofxpd.
Related Issues (20)
- Building ofxPd using Emscripten HOT 17
- Cannot build pdMultiExample HOT 5
- [question] there's any way to avoid libPd compile build for Windows / VS 2017? HOT 26
- Using ProjectGenerator to create an iOS ofxPd project? HOT 2
- iOS can not find my patch HOT 2
- Use keyboard input on iOS? HOT 1
- error compiling pdMultiExample with PDINSTANCE and PDTHREADS HOT 9
- pdMultiExample crashes with PDINSTANCE and PDTHREADS HOT 13
- ofxPd stops recieving messages (bangs) when ofxMidi is currently running on ios HOT 1
- background audio on android and back button issue HOT 10
- writesf~ file doesn't get created on iOS 15 HOT 7
- update libpd header link HOT 1
- pd.closePatch() not working with Emscripten HOT 7
- Is it possible to load local audio files (with the file browser) into ofxPd? HOT 1
- [metro] outputs a single bang and then stops HOT 8
- cannot convert argument 1 from 'void *' to 't_pd *' HOT 10
- audioReceived & audioRequested deprecated HOT 2
- Emscripten compatible version HOT 1
- Building in Visual Studio with custom externals HOT 2
- linking error while building on win11/mingw64 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxpd.