You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use dummy driver when JS AudioContext is unavailable.
This commit is contained in:
@@ -34,12 +34,13 @@
|
||||
#include "servers/audio_server.h"
|
||||
|
||||
class AudioDriverJavaScript : public AudioDriver {
|
||||
float *internal_buffer;
|
||||
float *internal_buffer = nullptr;
|
||||
|
||||
int _driver_id;
|
||||
int buffer_length;
|
||||
int _driver_id = 0;
|
||||
int buffer_length = 0;
|
||||
|
||||
public:
|
||||
static bool is_available();
|
||||
void mix_to_js();
|
||||
void process_capture(float sample);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user