The silent death of onSoundComplete event – a petition

December 10th, 2007

History
Back in the year 2002, where FlashMX was introduced, I was pleased to see the new event 'onSoundComplete'. I had access to the beta version these days (cannot say where, cause I wasn't in the beta group). I found out, that it simply did not work as expected. The event should be triggered, when a sound was completely played, but starting a new sound on the very same event caused a small gap in playback. What was the point? The 'onSoundComplete' event was only triggered at the beginning of a certain minimal timeframe (2048 samples on a PC ~ 46ms / 44.1KHz). Macromedia didn't take my report seriously - more - they demanded that everything worked as expected. Well, no musicians worked at Macromedia those days.

The first hack on SoundComplete
Same year - Frank Baumgartner found a way to trigger waveforms sample-exact - the base for any kind of sequencing. He found out, that the 'offset' in Sound.play( offset, loop ) accepts a float (Number). He played waveforms with a little silence at the beginning to create a time-offset, where the actual waveform starts where it should - free from any timeraster. This was very cool and I started playing with it. Fortunately the event was triggered very precisely. Lucky times.

More enhancements on Sound
In
2005 Adobe introduced Flash8. We got 32 stereo sound channels - a huge number according to 8 in the past. I felt for the first time that the onSoundComplete event has become less stable, but still passable.

Going dynamic
Then Flash9 was introduced with a tiny method, that changed my flash life (Loader.loadBytes). 'Shouldn't it be possible to create SWFs on the fly?'. After some tests I found a solution (as others too) to create a dynamic audio stream with your own amplitudes within the FlashPlayer. Awesome possibilities! Just one darkside: It all depends strongly on the now renamed 'SOUND_COMPLETE' event. The hack necessarily must have a solid timer for creating an endless audio stream. Unfortunately the onSoundComplete event lost priority. It become very unstable. Using a 4 times longer buffer (8192 samples) makes it more stable, but also increases the latency of the audio application. Furthermore it takes more time at once to compute all samples. Every animation stops.

The silent death
But if you think it cannot be worse, Windows Vista was introduced where the onSoundComplete event went totally out of control. A FlashPlayer minor-update fixed that back to normal (by accident? - no release notes...), but the latest (R115) has back the glitch. Any upcoming minor update of the FlashPlayer can be the death of the onSoundComplete event at all. At that point I hate to be such dependent on Adobe and their interest.

So why should it be important for Adobe to fix this?
Software is going online and Adobe wants us to use the Flash technology to create online application - so called "Rich Internet Application". We are currently building a huge audio application (yes - a new one!), which completely matches that strategy. So please write a comment. Lets make that issue important for Adobe to fix it in the next "Minor' release. I know, you will have fun with our new "Rich Internet Application" and a lot of more audio application should follow! Making music is cool! Much cooler than 3D :)

Here some URLs to test:
8bitboy.popforge.de
lab.andre-michelle.com/tag/audio

Note that ALL hacks based on the onSoundComplete fail at the time on various machines!

Related Blog Posts:
New project and my new TB-303
Popforge Opensouce Project
Flash sound issues on vista
Umz tzz Buzz tzz Umz tzz Buzz

Filed under: +

133 Responses to “The silent death of onSoundComplete event – a petition”

  1. jankees Says:
    December 10th, 2007 at 4:55 pm

    I totally agree!

    And yes making music is much cooler than 3D :)

    Kind regards,
    Jankees

  2. Frank Baumgartner Says:
    December 10th, 2007 at 5:05 pm

    YOU ARE RIGHT!!

    i can only agree André, this really has been so unsatisfactory for so many years !!!!

    ADOBE PLEASE FIX THIS PROBLEM !!!

    It is a small step for you, but a big step for mankind :-) (well, at least the flashing part :) )

    kind regards,

    Frank

  3. justin Says:
    December 10th, 2007 at 5:09 pm

    amen!

    but making dynamic music tied to 3d objects is even cooler :)

  4. Joa Ebert Says:
    December 10th, 2007 at 5:09 pm

    The SOUND_COMPLETE is actually so important because it opens this huge space of possibilities and they just kill it by forgetting about that one event.

    Also funny: Vista and SOUND_COMPLETE is completly hosed. If I run Ubuntu using VMWare in Vista it runs totally fine with the the Linux player. What the hell..?!

    … and wouldn’t it be even cooler to synchronize some 3D animation with music? :)

  5. Frank Baumgartner Says:
    December 10th, 2007 at 5:12 pm

    Aye!

    Indeed particularly interesting on this issue also is, the delay time of the actual flash sound buffer (System.capabilities…. ?). – So not only the syncing INSIDE flash is important, also the overall output delay – as you say – so we can ALSO do perfect syncing with the graphics engine.

  6. Frank Baumgartner Says:
    December 10th, 2007 at 5:19 pm

    Alternative – Even one Step further:

    I remember proposing FMOD or Mini FMOD to Macromedia, years ago…

    The miniFMOD engine is highly portable and incredibly (!!) fast.

    I think sound formats like MOD, XM (or newer versions including MP3 encoded samples) sounds like “just perfect” for web AND (!!!) mobile usage.

    When mini-FMOD takes only something below 10 kilobytes of additional plugin size, this is _really_ worth it and you actually have a) sound player b) effect engine c) sampling/pitching engine natively inside flash! – The MP3 engine is already in the flash plugin which could be re-used …

    I think something like Mini FMOD (or whatever is similar) would be incredibly great for flash game developers !

    kind regards,
    frank

  7. bram Says:
    December 10th, 2007 at 5:21 pm

    +1

    no more glitches and relatively obscure hacks. adobe please just give us a clear access point to the samples of the audio buffer!

    – bram

  8. Monokai Says:
    December 10th, 2007 at 5:34 pm

    Agreed. I don’t want to miss out on those new cool sound apps! And to bring back to live my old .mod files again, in a hacked together Flash module player :)

  9. Kai-Philipp Schöllmann Says:
    December 10th, 2007 at 6:26 pm

    HeyHo. This is really a change to the worse. Generating sound on the fly in your browser is(now was) a great opportunity and opens a whole new domain in flash development. I never understood why they neglected the sound part of multimedia at all and was happy that someone found a way to circumvent this issue. and now.. back to the beginning? hm.. i don’t see the strategy.

  10. Tek Says:
    December 10th, 2007 at 7:27 pm

    Better Flash sound support is THE thing we need !

    Agree with Andre, please fix the problem in a next minor release.

  11. Schell Says:
    December 10th, 2007 at 8:55 pm

    Sound is crucial to making games and I love the FMOD idea. I’ve set a feature request. If anyone else would like to send a request, here’s the address of the form -> http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  12. Aral Balkan Says:
    December 10th, 2007 at 10:24 pm

    +1 on the FMOD idea (and, of course, the fixing of onSoundComplete).

    Thanks for bringing this up, Andre! :)

  13. Hannes Says:
    December 10th, 2007 at 10:34 pm

    yes!

  14. manfred karrer Says:
    December 10th, 2007 at 11:50 pm

    i totally agree! adobe should really take more care of sound in flash. FMOD in flashplayer would be great!

  15. sascha/hdrs Says:
    December 11th, 2007 at 3:36 am

    So this got fixed in an update in between?! I would have thought that the 115 finally fixes the sound glitch but instead it introduces it back again. Adobe is caring a lot about making video and 3D (Papervision) look good in Flash these days which is good but unfortunately it seems that audio gets the short side. As a game programmer I like to support dynamic audio in Flash so this is also important for me.

  16. Ryan Says:
    December 11th, 2007 at 5:10 am

    Yeh it seems like audio is slipping on their focus list like sascha said. Hopefully they listen when a very big push for audio apps with Flash ride on this event. Some of the stuff you can do with the speed of AS3 are great but it is important to fix features before adding more.

  17. JP Says:
    December 11th, 2007 at 8:24 am

    Thanks for this great post André.
    Adobe guys this is a SOS, we are working with the SOUND_COMPLETE event to provide a better experience with flash. Don’t let us down.
    I’ve worked on the 8bitboy engine for 2 weeks now to make it smooth with animations and games. And the latest release of the player ruins all this work on Vista.
    You can view (hear) a demo
    of bitboy for games
    .

  18. murejib Says:
    December 11th, 2007 at 9:41 am

    Well, I never faced thiat bug, but it sounds terrible (((
    As a musician and a flash developer I can’t agree with such mistreating the SOUND!

    Andre, if you haven’t done it already – here’s the Justin Everett Church’s blog
    http://justin.everett-church.com/index.php/wiwtw/
    – he is one of the FlashPlayer team – you can describe the problem I think better then anyone can )))
    We will join!!!

  19. FlashBookmarks Says:
    December 11th, 2007 at 10:14 am

    Agreed, hope they will support this soon, instead of using a ‘hack’.

    Good luck

  20. oos Says:
    December 11th, 2007 at 11:52 am

    Just want to add my support to this. Should be an easy fix one would think. Hope they get it done in the next minor-update.
    It´s bad when you even can´t trust the bugs anymore :)

  21. Igor Vasiliev aka The Helmsman Says:
    December 11th, 2007 at 1:17 pm

    I completely agree that on SoundComplete event must go back to work and work well. About a half year ago I was working in company called Zone4play which produce a games for UK TV market and we developed Voice Over machine with bank about 150 pre-recorded sounds for some game which was played interactively upon decisions made by game engine and all of this stuff was depend on SOundComplete event. Now I can’t even imagine what will happens with all our games, which still work on several Cable Vision channels in UK with another update of Flash player. Really sad.

  22. Marat Atayev Says:
    December 11th, 2007 at 1:32 pm

    i totally agree!!!!

  23. stigg of the dump Says:
    December 11th, 2007 at 2:18 pm

    Just adding my support .. onSoundComplete and SOUND_COMPLETE have been a thorn in my side a few times.

  24. dAN Says:
    December 11th, 2007 at 3:27 pm

    You’ve got my vote

  25. Tom Pei Says:
    December 11th, 2007 at 3:40 pm

    I Agree. Please do fix this. It’s important for us. Thank you. Tom

  26. Flapflap Says:
    December 11th, 2007 at 3:58 pm

    I AGREE A LOT !
    (Not sure it’s good english but it’s sincere)

  27. Exey Says:
    December 11th, 2007 at 4:40 pm

    Andre, your lab’s site, one of my favorite
    Adobe fix this problem!

  28. Seb Lee-Delisle Says:
    December 11th, 2007 at 5:04 pm

    yes I agree 100% Andre! See you soon, Seb

  29. E-Phonic Says:
    December 11th, 2007 at 5:14 pm

    I was, just like you Andre, building synths with AS3 some time ago using a similar hack … But stopped because of these instabilities…

    Rather than fix this SOUND_COMPLETE issue, I’d like Adobe to create a ‘normal’ way to access the sound buffer of Flash.

    Don’t get me wrong… I hope they fix this SOUND_COMPLETE issue, but this only makes a complex hack work again.

    Just compare the new features at the graphic-side of the latest releases of Flash, and then look at the audio side… not much happened right?!

    Cheers!
    PJ

  30. Tink Says:
    December 11th, 2007 at 5:15 pm

    Not a huge deal for me as sound isn’t the main focus of our work, but we have come across this problem and workarounds in the past.

    SOUND_COMPLETE should work as expected, i.e. be dispatched as soon as a sound has completed.

  31. Tom Says:
    December 11th, 2007 at 5:53 pm

    Yes, please fix this and add a sane way to access the audio buffer. It would good to be able to access incoming microphone data too.

  32. spender Says:
    December 11th, 2007 at 10:09 pm

    argh. adobe broke my code… probably. thanks for the tip-off, andre.

  33. Mike D Says:
    December 11th, 2007 at 10:17 pm

    c’mon Adobe your holding Andre back from creating the definitive audio RIA.

    And while you’re at it, how about allowing computeSpectrum for rtmp streamed audio..

  34. sascha/hdrs Says:
    December 12th, 2007 at 3:33 am

    btw having mini FMOD or something similar in Flash would be totally sweet! I remember we proposed something similar earlier! Please Adobe do us the favor and implement it. It seems to be quite popular among developers. Here’s more info: http://www.fmod.org/index.php/download#FMODMini

  35. Mike Welsh Says:
    December 12th, 2007 at 3:57 am

    It is frustrating that while Flash makes great strides in certain areas, it falters in others. And you’re right, Adobe has it’s own agenda about what to focus on, and it’s very slow and difficult to sway them elsewhere.

    The audio portion of Flash Player is still in bad need of attention. Why is there no built-in hook to dynamically generate sound? Why does computeSpectrum operate globally on every instance of Flash player, not just the Flash app calling it, often causing a stupid SecurityError? Why can’t we use computeSpectrum on a specfic SoundChannel? Not to mention sort-of bugs like Sound.play( startTime, loops ) looping back to startTime, and not the beginning of the sound.

  36. frank Says:
    December 12th, 2007 at 1:28 pm

    …it´s a mess that Adobe haven´t fixed “onSoundComplete” yet!

  37. spender Says:
    December 12th, 2007 at 1:41 pm

    i noticed a comment here (that has disappeared) about how to do MP3 data. I’ve just published some code on my blog about this…

    http://www.flexiblefactory.co.uk/flexible/?p=35

  38. Eric Wahlforss Says:
    December 12th, 2007 at 5:12 pm

    Oh no!!! There’s still time, Adobe, so please fix this!!

  39. Steve Says:
    December 12th, 2007 at 5:57 pm

    I Agree

  40. Rafeo Says:
    December 14th, 2007 at 12:46 am

    Thumbs up!

  41. Pete Hobson Says:
    December 16th, 2007 at 12:59 am

    I’ve been following your funkdoobius sound applications for some time. Hers my vote to allow them to live!

  42. Kai Langenbach Says:
    December 16th, 2007 at 11:41 am

    The guys at Adobe should wake up and redesign the whole audio stuff in fp! Why don’t they see the importance of a well designed audio api for things like game development???

  43. Yesutin Says:
    December 18th, 2007 at 7:41 am

    i totally agree!!!!

  44. Jensa Says:
    December 18th, 2007 at 10:09 am

    Great (and sad) discovery Andre! Hope Adobe will solve this, as I know your project will be their new favorite showcase!

  45. richard willis Says:
    December 18th, 2007 at 11:34 am

    my last project was the flash front end for an interactive artwork for the biggest arts organisation in london and this b_st_rd bug raised its ugly head halfway thru and nearly caused me to look like a complete fool in front of my clients. when you say ‘look, it’s not me, its the player or adobe or something’ people tend not to believe you and loose a little faith. so, as someone who has felt the real sharp end of this issue i STRONGLY support this petition. PLEASE fix this adobe. :)

    ps to adobe: the rest of your stuff is great, keep up the good work. :)

  46. epologee Says:
    December 18th, 2007 at 12:11 pm

    Adobe has been ignoring the audiophiles since the very beginning of Flash. Yes we got 32 channels in Flash8, but still in Flash9 the only modifiers we get is volume and panning. The pseudo audio analysis we got in return adds next to nothing. The audio synthesis you (and others) came up with totally breaks free from the boundaries that Adobe forced upon us, but then we at least need a stable onSoundComplete event!

    Please let us have at least that! “REBEL REBEL REBEL!”
    Cheers, Eric-Paul – Amsterdam.

  47. ianM Says:
    December 18th, 2007 at 1:13 pm

    Added my vote

  48. Michiel van der Ros Says:
    December 18th, 2007 at 1:35 pm

    Are the comments the petition?

    What I saw demonstrated by you at Flash on the beach in Brighton. Was by far the most surprising thing ever on a Flash player. (yes, 3D is cool too, but we saw that coming, right?)

    Why would Adobe kill functionality that enabled people to do something so extraordinary???

    HEREBY I SIGN THE PETITON!

  49. Stephan Says:
    December 18th, 2007 at 3:12 pm

    Count me in, without this working properly it’ll be impossible to make any cool stuff.

  50. freemind Says:
    December 18th, 2007 at 3:20 pm

    agreeed andré! +1
    good to point it out and i REALLY hope adobe is listening ;)
    my suggestion to adobe: hire andré and make him audio minister for flash/flex *g*

    you rock!
    henrik

  51. Rostislav Says:
    December 18th, 2007 at 3:52 pm

    voters++;

  52. Mem's Says:
    December 18th, 2007 at 3:54 pm

    Let’s do André better than hacks !

    I think Flash needs to be more efficient for sound, not just volume for the microphone, not just a hack for on fly sound generation.
    But now juste repare this bug

    Adobe, do not the same thing as Microsoft, listen your customers !

  53. Flo Weil Says:
    December 18th, 2007 at 4:05 pm

    I agree with Andre, too. Please fix it

  54. freddy Says:
    December 18th, 2007 at 6:56 pm

    +1 for the fix, or everybody just drop Vista…now seriously: it would be more interesting to see stuff like André and some others do with sound implemented directly on the player as in no hacks or PHD involved to create this kind of apps, that would be an improvement, not 1 audio bug platform specific fix.

  55. Nate Chatellier Says:
    December 18th, 2007 at 8:40 pm

    Uh oh, not another reason for me to start looking into Silverlight… +1 for the fix.

  56. James Richards Says:
    December 18th, 2007 at 10:51 pm

    We need this back in!

  57. pedro Says:
    December 19th, 2007 at 9:43 am

    You got my vote on this.

  58. m1ke Says:
    December 19th, 2007 at 10:53 am

    /me voting too :-)

    unfortunatly i never got used to dynamic audio in flash, but why should adobe reroll a program part with less capabilities. i hate standing still and this is the best example for some stupid ideas from adobe/microsoft whatever…

    hope this helps :-)

  59. Juan Pablo Says:
    December 19th, 2007 at 7:14 pm

    I am really worried about this issue, Media is getting more interactive each day. Why sound in flash holds so mediocre while display classes are growing amazingly? is it some kind of punishment or just laziness? what ever it is Adobe please make sound part of the “rich media” concept a lot of people would be pleased to be able to make unpredicted things with sound and music…

  60. xero / fontvir.us Says:
    December 19th, 2007 at 8:19 pm

    here! here! adobe need to get on the ball!

  61. Thibault Imbert Says:
    December 20th, 2007 at 2:27 am

    please Adobe ! ;)

  62. andrei Says:
    December 20th, 2007 at 3:00 am

    BAD Adobe… :(

  63. Juan Pablo Says:
    December 20th, 2007 at 3:58 am

    have you seen this?

    http://mrdoob.com/#/34/

    watch it closely please!!!!!

  64. Stef Says:
    December 20th, 2007 at 9:56 pm

    After all the hard work and evangelism for Flash André did, the least thing that Adobe can do is to correct that…

  65. Roland Sproll Says:
    December 21st, 2007 at 11:26 am

    no question, very unsatisfying for each flash developer. working hard for know-how, extending it’s limits and being part to make it popular, especially andre. and it makes no sense to invest in things you can’t trust.
    andres sound developments are really encouraging, opening a new dimension for flash applications with interactive arranged music. that’s rich.

  66. Wouter Says:
    December 21st, 2007 at 2:20 pm

    Yes, my vote too for better audio in Flash and a fix for onSoundComplete. I’ve always been a bit disappointed with the audio capabilities of Flash, so this hack is a big improvement.

    And thanks for making your 909 code open source! I’m now making my own drum machine / sample player as a first project to get used to Flex and AS3. Lots more fun when you can make music with Actionscript. :-)

  67. Yotam Laufer Says:
    December 23rd, 2007 at 12:08 pm

    Yes please! Thanks Andre.

  68. hs Says:
    December 23rd, 2007 at 5:00 pm

    I second that. Andre deserves more than anyone else to be heard and supported by Adobe – besides the fact that it would make our lives much easier if this event works as expected.

  69. Don Park Says:
    December 23rd, 2007 at 10:03 pm

    You have my vote as well. It’s sad but this sort of thing is precisely why I warned people away from getting too deep into dynamic sound in Flash.

  70. Ash Atkins Says:
    December 24th, 2007 at 3:42 pm

    Adding my name :)

  71. André Michelle Says:
    December 30th, 2007 at 4:36 pm

    Thank you all for your comments. Unfortunately I heard from dark channels, that Adobe probably won’t release another minor update before the FlashPlayer 10 arrives. However a official note would be nice!

    Let’s pray for new Sound functionalities in FP10 to create ass-kicking rich-media-music-applications in future.

    The petition worths the effort anyway. We made clear, that we NEED this :)

    Happy new year!

  72. Cato Paus Says:
    January 1st, 2008 at 6:26 pm

    HEREBY I SIGN THE PETITON!

  73. Simon Says:
    January 3rd, 2008 at 5:38 pm

    Yeah, I sign too ! Adobe, stop restrictions please! BTW, André you still rock ! ;)

  74. Neil Voss Says:
    January 4th, 2008 at 4:58 am

    ADOBE please fix. This is an old undying issue. Just create a writable sound buffer and an accurate way to stream to it already. Or, better yet, make a real sound object with resampling and stuff as well.

    Wouldn’t want to have to start speccing Silverlight for applications needing in depth sound.

  75. Neil Voss Says:
    January 4th, 2008 at 5:02 am

    ADOBE please fix. This is an old undying issue. Just create a writable sound buffer and an accurate way to stream to it already. Or, better yet, make a real sound object with resampling and stuff as well.

    Wouldn’t want to have to start speccing Silverlight for applications needing in depth sound.

  76. Stefan Says:
    January 4th, 2008 at 5:20 pm

    ADOBE PLEASE FIX THIS PROBLEM !!!

    Nothing more to say…

  77. Tyler Says:
    January 4th, 2008 at 10:11 pm

    Rather than fix this SOUND_COMPLETE issue, I’d like Adobe to create a ‘normal’ way to access the sound buffer of Flash.

    Don’t get me wrong… I hope they fix this SOUND_COMPLETE issue, but this only makes a complex hack work again.

    I agree with E-Phonic. SOUND_COMPLETE of course needs to be fixed, it’s a part of the Flash Player API. But further dynamic sound capabilities (both audio buffer & MIDI) need to be added. MIDI is small, dynamic and universal, all the things Flash Player stands for. The capability we have to generate streaming sound via the Loader class is to our own credit (developer community) despite Adobe’s lack of attention to audio features.

    The SOUND_COMPLETE will probably be fixed in FP 10, but don’t count on any audio enhancements.

  78. Johnny Says:
    January 8th, 2008 at 4:54 pm

    Definitely worth it.

    Loops and sounds are an amazing way to workout an emotional plus to interactivity. OnSoundComplete is part of the magic for me. Don’t want to put intervals everywhere just because they can’t make it work…

    Sound may be the less important dimension in websites right now, but it’s just a question of time. Have anyone seen a movie on mute lately?

  79. Markus Raab (derRaab) Says:
    January 9th, 2008 at 11:24 am

    I agree with you André, even if I have not so much experience with sound programming in ActionScript!

    Adobe.addCompleteSoundSupport( please: Boolean = true );

  80. Cato Says:
    January 9th, 2008 at 8:38 pm

    I have submited it as a Feature Request. Follow the link and create a accont and vote for it! https://bugs.adobe.com/jira/browse/SDK-14245

  81. ???????? Says:
    January 10th, 2008 at 5:25 am

    What is the point is not understood?

  82. Adrien Says:
    January 10th, 2008 at 1:49 pm

    Totally agree with you there Johnny. Adobe/Macromedia systematically undervalued sound on the web. What improvements of the Sound Class has Adobe given us since Flash 7? Sound analyze data. Whoohooo!!! We can now make graphic visualizers in Flash that are not phoney. The popForge Library, now that’s something that’s really gone make a difference on the way people COULD experience the web. If Adobe would take Flash Player functionality consistancy a little more serious, that is. And that’s assuming the death of SOUND_COMPLETE was unintentional.

    People over at Adobe: Wake up and hear the sound!

  83. Cato Says:
    January 10th, 2008 at 3:54 pm

    Hi Andre can you provide me with sample, so I can report it to adobe?

  84. Joeflash Says:
    January 14th, 2008 at 5:55 am

    I’ll vote on that. Adobe has certainly done amazing things in the past few years, but… here we are, in Flash Player 9 (going on 10), and sound in the Flash Player is still a pain to work with. Get with it, Adobe.

  85. dotmick Says:
    January 16th, 2008 at 1:56 pm

    Totally agree that’s a big problem. Please Adobe to fix it.

  86. Janosch Says:
    January 17th, 2008 at 3:58 pm

    Please vote for this bug at
    http://bugs.adobe.com/jira/browse/ASC-3111
    hope this is going to be fixed!

  87. ian Says:
    January 20th, 2008 at 1:58 pm

    Great cause, I hope adobe takes all these comments to heart.

  88. efish Says:
    January 21st, 2008 at 2:31 pm

    What a hot discussion. I expect the adobe to concern this issue.
    By the way, I wish adobe add another musical features to flashplayer—MIDI playback and midi device communication.
    I had tried to control playing MIDI file in flashplayer with the assistance of js, but met troubles at synchronous and cross broswers.
    I have publish my MidAs3 project at http://code.google.com/p/midas3/

  89. Sam Goody Says:
    January 23rd, 2008 at 10:39 pm

    Adobe seems to think that sound is inconsequential. We have been forced to seriously consider Silverlight, due to the following unresolved issues:
    1) The problems with soundComplete
    2) ‘open’ is triggered incorrectly in IE (according to Adobe, I didn’t test it myself)
    3) lack of memory handling on used sound events
    4) lack of native playback for music encoded at 48khz (come on, this is as old as winAmp! and yes, I know that r115 resamples the music during playback, but it is far far from satisfactory. Timing is off, and sound cannot be started in the middle).
    5) Confusing support for different mp3 bitrates
    6) An overall feeling that sound is not a priority. For a music site, this doesn’t work well at all.

    Silverlight has been accused of being Windows Media Player rewrapped and shoved into a browser. Maybe so, but that means proper support (if bloated) for sound!

  90. Anton Shmidt Says:
    January 28th, 2008 at 4:10 pm

    This is extremely cool hack that allows to synthesize almost anything you want on the run. And so we can make precious music pieces for flash games \ applications in couple of kilobytes, like they do it in 64k demos.

    Hope the problem will be solved and the Earth will be saved.

  91. Myster Says:
    February 7th, 2008 at 6:57 pm

    AGREED. ADOBE PLEASE FIX IT.
    I’m suffering from it for several years!

  92. kl Says:
    February 13th, 2008 at 5:12 am

    PLEASE FIX IT.

    Making music is cool! Much cooler than 3D !!

  93. miurror Says:
    February 14th, 2008 at 8:47 pm

    >Janosch Said…
    >Please vote for this bug at
    >http://bugs.adobe.com/jira/browse/ASC-3111
    >hope this is going to be fixed!

    Hey! the page ASC-3111 says the SOUND_COMPLETE BUG has been rejected in fact!

    the status of the bug has been ‘resolved’, but it does not mean that it’s been resolved by ActionScript Debug Team.
    It’s just put back to us, and they say that we should post the issue to the FlashPlayer Bugbase.

    Also Brent Baker commented we should report the bug more concretely .

    so why don’t you inform them of this problem from the following link!
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

    I’ll do that, because I really want to create AudioApplication in Flash!

  94. Babeuf Says:
    February 20th, 2008 at 2:51 pm

    Very annoying.
    AS3 Sound package sucks, hope it’ll be fixed someday.

  95. Mikk Says:
    March 1st, 2008 at 6:56 pm

    Nice initiative, I agree and sign the petition !!

  96. uri golan Says:
    March 1st, 2008 at 8:10 pm

    totally agree!!

  97. Rytis Says:
    March 12th, 2008 at 9:15 pm

    Adobe, please fix it! It’s important!

  98. Michiel van der Ros Says:
    March 13th, 2008 at 3:11 pm

    Ralph Hauwert mentioned in his blog that a security update is coming up. LINK

    Have you been in touch directly with Adobe about this yet?

  99. André Michelle Says:
    March 16th, 2008 at 5:58 pm

    Thank you all for your comments.

    We do care!
    http://www.adobemakesomenoise.com

  100. Matt Says:
    March 20th, 2008 at 2:00 pm

    What do we want ONSOUNDCOMPLETE
    When do we want it…………

    when the sound has finished playing ;)

  101. ps3 Says:
    March 22nd, 2008 at 10:09 am

    Nuff said, that should be fixed at once. Luv your blog.

  102. Moses Says:
    March 31st, 2008 at 11:10 pm

    I agree whole heartedly. I really hope Adobe starts listening. Music is my job and Flash is my hobby. If they started taking sound seriously I would be so happy.

  103. Tracy Says:
    April 10th, 2008 at 12:29 pm

    Hi Andre

    I’ve also experienced a problem with actionscript sound, which has been since the release of the Flash Player version 9.0.115. It’s not the same issue as yours but think they might be related.

    Basically, I have 3 sounds instantiated in my actionscript. Once everything has loaded I call an init function that starts the sounds:
    sound1.play(0, 1000);
    sound2.play(0, 1000);
    sound3.play(0, 1000);
    I also tried the following:
    var startTime = getTimer();
    sound1.play((getTimer() – startTime), 1000);
    sound2.play((getTimer() – startTime), 1000);
    sound3.play(0(getTimer() – startTime), 1000);

    Theoretically, they should all be pretty much in sync, but they aren’t. I did some digging on the web & found a bug documented about how this has been an issue since FP 9.0.115. So I installed FP 9.0.45 and found that all the sounds played perfectly in sync. I was hoping that there would be a fix in the latest release of the FP. But the sounds still play out of sync for FP 9.0.124.0

    Here are the links to the related bugs I had found on the forums:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=44&catid=184&threadid=1338772&enterthread=y
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=44&catid=184&threadid=1330260&enterthread=y

    Cheers
    Tracy

  104. Harry Says:
    April 12th, 2008 at 8:04 am

    Adobe should certainly fix this, since so many people have come to depend on it, but they should really write a sound API providing a clean way to write generated PCM audio to the soundcard.

    Oh, and I’d also like them to expose a function to decode part of an MP3 file to PCM audio, so that I can ship samples as MP3s, but still process them as PCM (adding delay, reverb etc algorithmically).

  105. parkiety Says:
    April 14th, 2008 at 11:09 pm

    fix this!!

  106. Tarnów Says:
    April 15th, 2008 at 12:07 am

    Adobe should fix this problem at once !!!

  107. Cato Paus Says:
    April 17th, 2008 at 7:50 am

    Hi Andre :)
    Why don’t you post at http://bugs.adobe.com/flashplayer/

  108. strony internetowe Says:
    April 17th, 2008 at 9:21 am

    Hello Andre, I know the pain, why you don’t post this on Adobe page?!

  109. Steven Cummings Says:
    May 2nd, 2008 at 7:55 pm

    I’ve just come across this bug while porting an app to actionscript 3. It’s ridiculous that this doesn’t work properly. Maybe it’s time to give silverlight a go.

  110. Seefelder Says:
    May 5th, 2008 at 4:47 pm

    function = onAdobeNextMinorComplete() {
    Release_MinorFix.onSoundComplete=true;
    }

    We agree too! ADOBE get your hands out of the purse and start fixing things for us programmers!!!!

  111. DJooprod Says:
    May 28th, 2008 at 10:10 am

    Adobe, now you just have to step up and do something serious about the sound handling in AS3. We want more control and better control, not less functions. Get the onSoundComplete back on- along with a host of other functions making it easier to do cool stuff without having to find workarounds all the time!

  112. Brian Says:
    June 25th, 2008 at 9:28 am

    So, I have been rebuilding my classes in AS3 and decided to improve my background music player.

    Pretty simple, you can add in looped MP3s and assign a weight to each one. Then they get picked at random, well somewhat random the higher weighted ones get picked more.

    Anyway. I come to find that onSoundComplete leaves a small gap between firing. Odd since a single sound can loop seamlessly using the play method. So obviously the player can detect the end of a MP3 and restart the stream from the top, but fails to send the onSoundComplete event in time?

    Is there any AS3 workaround for this at all?

  113. ZuRu Says:
    June 27th, 2008 at 10:01 am

    I’m agree too. It’s very cool thing !

    Regards,
    ZuRu

  114. linki sponsorowane Says:
    June 27th, 2008 at 10:08 am

    Hey,

    Something more….i think that makings 3d are coolest than making simple music tracks.

    Regards.

  115. Temp O'Rary Says:
    July 12th, 2008 at 1:21 am

    Just adding my voice to this post.

    Anyone else noticed the audio/video glitching in the latest Flash Player (9,0,124,0)?

    Cheers.

  116. Tony-b Says:
    July 30th, 2008 at 1:40 pm

    I totally agree.
    My invention the Tony-b Machine only depends on the onSoundComplete function.
    When the Flash Player 9 arrived, I thought it was the end…

  117. Darmowe Blogi Says:
    August 9th, 2008 at 12:39 pm

    I agree with you.

    Yes, please fix this and add a sane way to access the audio buffer. It would good to be able to access incoming microphone data too.

    ADOBE get your hands out of the purse and start fixing things for us programmers.

    Matix.

  118. Noclegi Ustka Says:
    August 16th, 2008 at 9:48 pm

    Yes I also agree with you. It is very cool.

  119. oyun indir Says:
    August 31st, 2008 at 9:06 pm

    Adobe should certainly fix this, since so many people have come to depend on it, but they should really write a sound API providing a clean way to write generated PCM audio to the soundcard.

  120. User links about "volksmusik" on iLinkShare Says:
    October 15th, 2008 at 6:18 pm

    [...] | user-saved public links | iLinkShare 1 votesandré michelle – volksmusik 2.0 " Blog Archive " The silent death>> saved by aivanag 1 days ago3 votesDie Zukunft der Menschheit » Herausforderungen des 21. [...]

  121. Wave Sequencer experiment | kelvinluck.com Says:
    November 6th, 2008 at 12:18 am

    [...] audio then you are probably running the latest revision of the flash player (9.0.115.0) which breaks onSoundComplete. So join the petition and ask Adobe to make some noise. I’ve compiled a standalone version of [...]

  122. mpu123 Says:
    December 16th, 2008 at 6:13 pm

    Adobe, please fix it. onComplete should be thrown when sound is complete!

  123. Scoch Says:
    January 25th, 2009 at 12:22 am

    I was so happy to make a music website with nice audio visualisation… SHIT!!!!!

  124. Scoch Says:
    January 25th, 2009 at 1:00 am

    Ooops… finally SOUND_COMPLETE is working by adding a new EventListener every time i call the play() method. I found the explication here : http://www.disher.ca/tag/actionscript-3/
    And it seems to be ok.

  125. Paul Says:
    March 12th, 2009 at 2:31 pm

    I have been going insane trying to sort this out. A day and a half of wasted time. Time I can’t afford to lose with deadlines fast approaching.
    I have now got it working thanks to Scoch.
    Respect and many thanks for your solution.

  126. sbs sonuçları Says:
    July 30th, 2009 at 12:44 am

    Just adding my voice to this post.

  127. Staffan Eketorp Says:
    December 7th, 2009 at 1:47 pm

    Wrote a blog post a few weeks ago on the topic (for AS2): http://www.isotop.se/2009/11/advanced-sound-programming-in-as2/

  128. oyun Says:
    May 19th, 2010 at 1:54 am

    oyun, oyunlar

  129. FileReference – A petition for Astro ! - ByteArray.org Says:
    August 11th, 2010 at 6:38 pm

    [...] André Michelle posted a few days ago a petition concerning the onSoundComplete event. This gave me an idea concerning the flash.net.FileReference API we have currently in the Flash Player 9. [...]

  130. Mark Says:
    August 15th, 2010 at 1:00 am

    This has been driving me crazy. Such an obvious and necessary requirement. Adobe FIX THIS, or it will force people to start looking into Silverlight and HTML5.

  131. Bas ten Hoor Says:
    February 23rd, 2011 at 4:51 pm

    PLEASE FIX IT!
    We could have so much more fun playing instead of testing and fixing!

  132. Advanced sound programming in AS2 « Isotop Says:
    March 29th, 2011 at 8:21 pm

    [...] much problems, but synchronizing audio turned out to be a real beast. Following the debate on Andre Michelle’s blog and http://www.make-some-noise.info/2008/04/01/response-to-a-bunch-of-questions-from-adobe/ Adobe [...]

  133. Генерация звука во Flash 10 - Блог студии Доминион Says:
    November 20th, 2011 at 11:19 am

    [...] оригинал этой истории можно прочитать в блоге Андре. Подробнее про принцип генерации звука в FP9 [...]