AudioAsset.d.ts 509 B

123456789101112131415161718
  1. import { Audio, PositionalAudio } from "three";
  2. export declare class AudioAsset {
  3. private _uuid;
  4. private _buffer;
  5. userData: {
  6. __ASSET__: string;
  7. };
  8. constructor(params: {
  9. uuid: string;
  10. buffer?: AudioBuffer;
  11. });
  12. get uuid(): string;
  13. get path(): any;
  14. get name(): any;
  15. getAudio(): Audio<GainNode>;
  16. getPositionalAudio(): PositionalAudio;
  17. static fromFile(filePath: string, onProgress?: () => void, onError?: () => void): Promise<AudioAsset>;
  18. }