[suggestion] Audio Condition - Tag Is Playing

  • I was just thinking that it might be pretty useful to have a condition for "Is sound with tag ("music") playing" or something similar, where the user could enter in a sound's tag as the sound to check for. If no sounds are playing with the defined tag, obviously it returns false. Inversion would be an obvious must as well.

    I just came around to thinking about it when I was trying to figure out how to control music across multiple layouts. There are other ways to pull it off (global variables come to mind) but this would make it an easy one-event solution.

    Any other suggestions for the Audio Object are certainly welcome in this thread.

    Also, on an unrelated note, any word on the "move in front of object"/"move behind object" z-ordering actions? <img src="smileys/smiley2.gif" border="0" align="middle" />

  • The reason we haven't added much new to the Audio object in the past few months is support is so bad nearly any new feature you can think of (including your suggestion) is only supported on a select few platforms. The situation is gradually improving though.

  • Ashley, with desktop export and the predominance of Chrome, don't you think some new Web Audio API options would be welcome?

  • sqiddster - people already get frustrated with the various features that don't work in some places (e.g. 'on ended' doesn't always trigger on all platforms) - I think supporting Web Audio API features could make that even worse, but on the other hand we have to balance the need to do cool stuff with sound...

  • Ashley, I certainly agree with you. If you were to implement this, you'd have to make it very clear that it would be supported on only some platforms.

    I still think it's worth the effort though, what with iOS safari, chrome, and desktop all using the API.

  • I just curious, what is the general outlook regarding audio support on different devices? One of two apps that I'm actively working on is literally based on audio; should i consider it to be unreliable as a web app for the foreseeable future?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • teahousemoon - all audio features work with the Web Audio API, which is supported on iOS 6 already. It should be coming to Chrome for Android in future as well, so if it doesn't work there, hopefully it will be fixed in the near future.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)