Code Monkey home page Code Monkey logo

Comments (8)

diwu86 avatar diwu86 commented on July 26, 2024 1

wavefile": "^6.13.0

import WaveFile from 'wavefile'
import RNFS from 'react-native-fs'

RNFS.readFile(path, 'base64').then(data => {
let wav = new WaveFile()
wav.fromBase64(data)
}

the path is the wav file path.

I try to load data to buffer and get the same error

from wavefile.

rochars avatar rochars commented on July 26, 2024

What version of WaveFile are you using? Also, could you give me more information about how WaveFile is being used in your React Native app?

Cheers!
Rafael

from wavefile.

rochars avatar rochars commented on July 26, 2024

Could you try installing [email protected] and see if this is still an issue on your build?

Cheers!
Rafael

from wavefile.

diwu86 avatar diwu86 commented on July 26, 2024

Now when I do let wav = new WaveFile(), I got TypeError: _wavefile2.default is not a constructor

from wavefile.

rochars avatar rochars commented on July 26, 2024

In version 6:
WaveFile = require('wavefile');

In version 7:
WaveFile = require('wavefile').WaveFile;

Sorry not to mention that earlier. Did this help?

from wavefile.

diwu86 avatar diwu86 commented on July 26, 2024

Yes it's working now. Thank you very much! Are you going to release 7 with the fix?

from wavefile.

rochars avatar rochars commented on July 26, 2024

:D

Yes, but there are more things to do before the release. I'm actually working on byte-data and riff-chunks (dependencies of WaveFile) to fix memory issues. Version 7 will be out after that.

Cheers!
Rafael

from wavefile.

rochars avatar rochars commented on July 26, 2024

Fixed in 7.0.0

from wavefile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.