parent
762fa6a8d8
commit
cf54c2ba47
16 changed files with 391 additions and 10 deletions
|
@ -92,7 +92,6 @@ export type OperationType = typeof operationTypes[number];
|
|||
* @param options `useCache`: デフォルトは`true` 一度再生した音声はキャッシュする
|
||||
*/
|
||||
export async function loadAudio(url: string, options?: { useCache?: boolean; }) {
|
||||
if (_DEV_) console.log('loading audio. opts:', options);
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
if (ctx == null) {
|
||||
ctx = new AudioContext();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue