[Feature Request] Audio: Actions

Discussion and feedback on Construct 2

Post » Mon Oct 20, 2014 5:11 pm

Hey Devs,

It will be very helpful if we could set Fade times parameters to the Audio object, like:

Audio actions: General

Action:Play
-Play an audio file with fade in

Action:Play (by name)
-Play an audio file using a string for the filename with fade in

Action:Set paused
-Pause or resume audio with a given tag with fade (fade in if resume, fade out if pause)

Action:Stop
-Stop a sound from playing with fade out

Action:Stop all
-Stop all currently playing sounds with fade out

There's a plugin that already do that, here's the plugin information:
http://c2rexplugins.weebly.com/rex_audio_helper.html

And the plugin:
https://dl.dropboxusercontent.com/u/5779181/C2Repo/Zip/plugins/rex_audio_helper.7z

This would allow us to make more professional audio effects instead of just stop the sound.

I'm pretty sure that integrate those Fade parameters inside the official audio plugin would be a big improvement for all the Construct 2 users.

Thank you @Ashley!
B
86
S
25
G
11
Posts: 652
Reputation: 11,051

Post » Mon Oct 20, 2014 5:39 pm

Yeah, It would be awesome.
Image
B
63
S
28
G
39
Posts: 460
Reputation: 24,187

Post » Mon Oct 20, 2014 6:14 pm

I love this idea. Very rarely would anyone want transitioning audio to just stop abruptly.
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Mon Oct 20, 2014 6:24 pm

You can use lerp() to set volume from zero to current with boolean to pause.
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

Post » Mon Oct 20, 2014 7:05 pm

This would definitely be a great addition to the audio plugin. And also very awesome if it will make it in C2 :)
B
23
S
3
Posts: 42
Reputation: 1,109

Post » Mon Oct 20, 2014 7:28 pm

Joannesalfa wrote:You can use lerp() to set volume from zero to current with boolean to pause.


Holy sh, thanks for that. It never crossed my mind, so simple!
Image | @AurelRegard on twitter
B
19
S
6
G
1
Posts: 307
Reputation: 2,500

Post » Mon Oct 20, 2014 7:51 pm

+1

While there are other ways to control audio, the plugin should greatly benefit from added functionality.

@tulamide has already made some really good suggestions in this topic ( viewtopic.php?f=146&t=88745&hilit=+advanced+audio ) , but since then the audio plugin has been neglected from any advancements. I am really happy that I've discovered rex's audio helper in the meantime, it really simplifies the fading procedure. But to create really immersive sound design and musical interactions we need more functionality and more upfront features.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Mon Oct 20, 2014 8:16 pm

It's actually not too difficult to make a linear fade out.

BUT

It is shit, because it's pretty fiddly and trying to get a logarithmic curve is difficult because I'm not that great at maths. So having tag fades with different attenuation curve types would be the best solution.

The whole audio system needs attention:

We NEED to be able to control the distance and roll-off factors for each sound / tag.

We need to be able to select which sounds / tags are effected by doppler, having all or nothing renders the feature practically useless.

We need to be able to apply effects to multiple tags.

This is basic stuff.
B
43
S
13
G
8
Posts: 622
Reputation: 7,392

Post » Mon Oct 20, 2014 9:15 pm

I'd very much like to see this too. Yes, it's relatively simple to code... but when you look at all the other advanced audio-actions already available it's quite odd controlling the volume smoothly is not already there. 8-)
Image
B
96
S
36
G
17
Posts: 351
Reputation: 15,903

Post » Tue Oct 21, 2014 12:22 am

I love to see : Add "X number" db to all sounds and subtract "X number" db from all sounds.
This will help to make volume control option.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 26 guests