Skip to content

Instantly share code, notes, and snippets.

var LibraryHTML5Audio = {
$AUDIO: {
players: [],
lastSoundID: 0,
},
html5audio_list_devices: function(){
console.log("list devices")
const constraints = {audio: true};
@ofTheo
ofTheo / ofApp.cpp
Created July 10, 2023 20:25
Dawn / webGPU test
#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;