Muffled Audio?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
xand
Prole
Posts: 2
Joined: Mon Feb 13, 2017 3:38 am
Location: Boston, MA, USA
Contact:

Muffled Audio?

Post by xand »

Hey there!
In one of the test projects I'd like to finish Id like an audio effect where the audio goes muffled when the player walks into a room. I would like it to be similar to how music and environment audio in many games gets muffled when a player goes underwater.

Is this possible in Love2D? I'm not very savvy in the area of audio, so any help is appreciated.
Thanks!
-Eric
Have a nice day; you deserve it.
<3
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Muffled Audio?

Post by xNick1 »

I read Love's 0.11 changelog. The devs added some audio effects.
The release is focused on audio for the most part.
Unfortunately it isn't out yet.
Maybe you can try experimenting with it since it should come out soon (especially if you're starting a new project)

Changes from 0.10.2:

Added low gain, high gain, and band pass Filters to love.audio Sources.
Added audio Effect APIs (reverb, echo, etc.)
Etc...
https://love2d.org/wiki/0.11.0
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Muffled Audio?

Post by s-ol »

The effect you are looking for is a Low-pass filter (LP) that let's the deep sounds through.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 45 guests