Code Monkey home page Code Monkey logo

Comments (5)

alexbw avatar alexbw commented on August 30, 2024

Wav files aren't compressed, so it doesn't require all the fancy readers that I have implemented in the sample. You can just skip the header information, and then start reading binary values. I've never done that, because it's not space or power efficient on the iPhone to do so (reading from disk is more expensive than running decompression on the ARM chip).
I'd recommend converting to m4a and proceeding from there.

On Jan 27, 2013, at 9:12 PM, EzRover.com and Ardumotion.com [email protected] wrote:

Hi Alex, would you know why .wav files wont play on this example? Which parameters do I need to change/tweak to make it play? The wav file is sample rate: 11025, bits per sample: 8, channels: 1


Reply to this email directly or view it on GitHub.

from novocaine.

ezrover avatar ezrover commented on August 30, 2024

Thanks Alex I have already written the new code to process the WAC file but it sounds cartoonish as if it is being played too fast. What do I need to change in nova canine or in the wav processing to match the playback rates to fix the cartoonish sound?

from novocaine.

alexbw avatar alexbw commented on August 30, 2024

That sounds like you're playing a mono file out to stereo. Make sure that if you have a mono audio recording, you write it correctly into the stereo output buffer.

On Jan 28, 2013, at 12:08 AM, EzRover.com and Ardumotion.com [email protected] wrote:

Thanks Alex I have already written the new code to process the WAC file but it sounds cartoonish as if it is being played too fast. What do I need to change in nova canine or in the wav processing to match the playback rates to fix the cartoonish sound?


Reply to this email directly or view it on GitHub.

from novocaine.

ezrover avatar ezrover commented on August 30, 2024

I c. Would u happen to have any samples laying around to copy from mono to nocaine's output block by any chance?

from novocaine.

alexbird avatar alexbird commented on August 30, 2024

I ended up reading this thread because I need to read uncompressed data into a unit test fixture. The sounds are actually encoded data, so I really don't want to apply lossy compression. Also this is test code, so the performance on the iPhone isn't relevant. I just want to load data as if it was a buffer from setInputData, so I can test how it is handled.
I'm not demanding anyone adds support for that, just pointing out that it is a valid use case!

from novocaine.

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.