Code Monkey home page Code Monkey logo

Comments (11)

billwoo avatar billwoo commented on June 24, 2024

To evaluate the usefulness of this interesting tool, I need a way to specify a local music to play. thanks, Bill

from dancer.js.

jsantell avatar jsantell commented on June 24, 2024

Gotcha -- will take a look at incorporating FileReader into interface

from dancer.js.

comster avatar comster commented on June 24, 2024

any progress on this? I'm looking to use dancer with an existing audio source.

from dancer.js.

jsantell avatar jsantell commented on June 24, 2024

Same deal with #13 -- once external audio sources can be leveraged, can use FileReader to pass data to that audio source as dancer leverages -- will update with progress :)

from dancer.js.

jsantell avatar jsantell commented on June 24, 2024

@billwoo, @comster: audio elements may now be used as the source for dancer's audio and may be controlled with an audio element as well. With this, you can use a file reader to load audio into an audio element. Check out the ./examples/audio_element/ demo for an example. Thanks!

from dancer.js.

comster avatar comster commented on June 24, 2024

I saw your first commit to the audio_element branch :) and hacked it to
work with aurora. The audio api is slightly different than the audio
element I think. I'll pull the latest and try to put together an example
and maybe submit a patch if it makes sense.

Great work, Thanks!

On Thu, Aug 9, 2012 at 2:36 PM, Jordan Santell [email protected]:

@billwoo https://github.com/billwoo, @comsterhttps://github.com/comster:
audio elements may now be used as the source for dancer's audio and may be
controlled with an audio element as well. With this, you can use a file
reader to load audio into an audio element. Check out the
./examples/audio_element/ demo for an example. Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-7627772.

from dancer.js.

jsantell avatar jsantell commented on June 24, 2024

The mozilla implementation looks doable, as it just sits on top of an audio element, but Aurora's webkit implementation is all within the Audio Context (Dancer was like that previously, just pushing a buffer, rather than using an audio element), if you get something working, would love to use it!

from dancer.js.

comster avatar comster commented on June 24, 2024

My hack worked in Chrome at least, although dirty. I'm think I'm just
passing through the existing buffer to connect listeners to. I'll try to
clean it up for posting.

On Thu, Aug 9, 2012 at 2:48 PM, Jordan Santell [email protected]:

The mozilla implementation looks doable, as it just sits on top of an
audio element, but Aurora's webkit implementation is all within the Audio
Context (Dancer was like that previously, just pushing a buffer, rather
than using an audio element), if you get something working, would love to
use it!


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-7628061.

from dancer.js.

comster avatar comster commented on June 24, 2024

Hey, I pulled the latest and tried to work in my changes.

I've got a branch for it here: https://github.com/comster/dancer.js/tree/audioapi

I need to add the moz adapter still, but it seems to work in Chrome. I've made an example folder to test using local files and aurora, but unfortunately it doesn't work when running the html via file:// and needs to be run from http://

from dancer.js.

jsantell avatar jsantell commented on June 24, 2024

Excellent, I think I see what's going on here -- this is for getting it working with Aurora? Is it also for using local files (which may not be the responsibility of Dancer, since ultimately it just goes in an audio element)

from dancer.js.

comster avatar comster commented on June 24, 2024

Ya. Aurora has both loadFile and loadURL. Unfortunately I wasn't able to get either working when running the example via file:// but it's a neat library supporting many codecs.

You can see the example here: https://github.com/comster/dancer.js/tree/audioapi/examples/aurora

I'll try setting it up as a gh-page later.

from dancer.js.

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.