This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var LibraryHTML5Audio = { | |
| $AUDIO: { | |
| players: [], | |
| lastSoundID: 0, | |
| }, | |
| html5audio_list_devices: function(){ | |
| console.log("list devices") | |
| const constraints = {audio: true}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofApp.h" | |
| //------------------------------------------------------------------------------------------- | |
| //mostly pulled from CppHelloTriangle.cpp example - void initTextures() | |
| //note the code in this seems to have changed a lot in the last few months - so a more up to date Dawn might need some language changes in here | |
| void ofApp::makeTextureFromOFPixels( ofPixels & pix ) { | |
| auto & device = dawnWindow->mDevice; | |
| dawn::TextureDescriptor descriptor; |
OlderNewer