Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Play file.wav question

edited May 2012 in Questions Posts: 176

I have been trying to follow all the discussions about playing music, ABCPlayer, random noise, MP3's etc. Unfortunately, it has mostly gone completely over my head. :-| I am looking for a simple answer (to a probably very un-simple question.) Will it be possible for codea to be able to play a wav file in the somewhat near future using an API similar to

playSound("battle.wav") 

The other options sound interesting, but are not really what I am hoping for.

Jim

Tagged:

Comments

  • GibGib
    Posts: 59

    +1 for this feature

  • SimeonSimeon Admin Mod
    Posts: 4,932

    Yes, it will be possible to do this in the future. Except the syntax will be:

    sound( "Dropbox:battle" )
     
    and
     
    music( "Dropbox:battleMusic" )
  • @Simeon , fantastic stuff! Will you be able to do things like change the volume level (easy then to use the tween library to fade sounds in and out) and perhaps a callback for when the sound has finished playing? Probably asking too much at this stage ;-)

  • edited September 2013 Posts: 1,976

    What file types will be supported? (Please include .wav, .mp3, and .ogg?)

    And in addition to everything @andymac3d said, maybe have the function return a variable you can use to change pitch too?

  • Posts: 22

    +1

  • Posts: 136

    great

  • edited January 2015 Posts: 1,976

    @emsi @jrohanian This discussion is over a year old, and these features were implemented a long time ago. Please try and check the last post's date before replying...

This discussion has been closed.