6#include <emscripten/val.h>
7#include <emscripten/bind.h>
30 if (alIsExtensionPresent(
"AL_EXT_float32"))
38 emscripten::val audioContext = emscripten::val::global(
"window")[
"AudioContext"].new_();
39 if (audioContext == emscripten::val::undefined())
40 audioContext = emscripten::val::global(
"window")[
"webkitAudioContext"].new_();
42 if (audioContext != emscripten::val::undefined()) {
43 audioContext.call<
void>(
"resume");
44 int sRate = audioContext[
"sampleRate"].as<
int>();
45 audioContext.call<
void>(
"close");
IOBluetoothDevice * device
QAudioFormat preferredFormat
QList< QAudioFormat::SampleFormat > supportedSampleFormats
Mode
Describes the mode of this device.
void append(parameter_type t)
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QWasmAudioDevice(const char *device, const char *description, bool isDefault, QAudioDevice::Mode mode)
Combined button and popup list for selecting options.
bool contains(const AT &t) const noexcept