[suggestion] Audio Condition - Tag Is Playing

Discussion and feedback on Construct 2

Post » Thu Sep 27, 2012 8:46 pm

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? TL222012-09-27 20:48:03
B
56
S
20
G
7
Posts: 305
Reputation: 8,754

Post » Thu Sep 27, 2012 10:43 pm

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.
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

Post » Thu Sep 27, 2012 11:25 pm

@Ashley, with desktop export and the predominance of Chrome, don't you think some new Web Audio API options would be welcome?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Fri Sep 28, 2012 12:52 pm

@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...
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

Post » Fri Sep 28, 2012 8:28 pm

@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.sqiddster2012-09-28 20:28:48
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Fri Sep 28, 2012 8:31 pm

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?
B
28
S
6
G
5
Posts: 248
Reputation: 5,463

Post » Sun Sep 30, 2012 6:35 pm

@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.
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests