1
0
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:
Fabio Alessandrelli
2020-06-29 18:51:53 +02:00
parent 1a637b07b1
commit 7a5e10b8a9
5 changed files with 40 additions and 15 deletions

View File

@@ -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);