View unanswered posts | View active topics It is currently Thu Mar 28, 2024 9:25 pm



Reply to topic  [ 5 posts ] 
 Not "interlacing" breath sounds 
Author Message
Rank 5
Rank 5

Joined: Thu Jun 21, 2018 8:24 am
Posts: 16
Location: Russia
Hello, everyone.

I'm trying to mess with breath sounds and I really can't figure out, how you can make them stop "fading" and "interlacing".
I've added some new sounds and find the game in the situation when one breath is styll going, and the other starts allready - and they overlap.

Is it some value in char_base.dat in the part:

Quote:
volume = 2.0;
freq = 1.0;

scale = 0.4;
speed = 1.0;
scale_vol = 0.1;
speed_freq = 0.2;


in each body?

Or is it managed in each task_XXXX.dat file?


Fri Apr 05, 2019 7:25 am
Profile
Rank 17
Rank 17
User avatar

Joined: Fri Feb 27, 2015 2:06 pm
Posts: 682
Location: Australia
I messed around with breathing and sounds in general and found that one character can only play one sound file at a time
which kinda broke my plans

Inside the characters run.dat is how you set what breath file to use
Code:
loc.sb.id    = 3;//id of breath you want
loc.sb.speed = 1.0;//how fast it breaths (plays file)
loc.sb.scale = 0.5; //volume based on scale in char_base.dat
SetBreath(loc.sb);


Code:
    breath_elem[3]
    {
      file   = "scenes/sounds/body/breath9.wav";
     
      volume = 1.0;
      freq   = 1.0;
     
      scale      = 1.0;
      speed      = 1.0;       
      scale_vol  = 0.1;     
      speed_freq = 0.2;
     
      restart    = false;//finish playing file before next file can play, if you call the same breath id again it restarts the sound file if true
    }


I don't know how they are fading or interlacing unless its in the sound file itself
or the speed is causing a miss timing or something like that
If you want to post an example file of the issue im more then happy to have a look

_________________
To install a mod

ESKARN'S TUTORIALS

Eskarn's Dungeon Mod(BETA)

Eskarn's puzzle map (story)


Fri Apr 05, 2019 10:52 am
Profile
Rank 5
Rank 5

Joined: Thu Jun 21, 2018 8:24 am
Posts: 16
Location: Russia
Eskarn wrote:
I don't know how they are fading or interlacing unless its in the sound file itself
or the speed is causing a miss timing or something like that
If you want to post an example file of the issue im more then happy to have a look

Yeah, probably should have done it from the beginning.
The thing is complicated a bit. So, here is the link.

https://mega.nz/#!ySIgUIaJ!5g4Ksez8Y3aH ... A4fIRjl4kU

The sounds folder is for Monica and goes into the /scenes/sounds/body folder. For not-crashing, copy it to the same location and name it Saiko, for Saiko has "her" folder written in char_base.
And I also add char_base.dat and task_creature so you can test all that.

So, my thought is that the "interlacing" may happen because I've set "variable" sound, but still I thought that one sound should end before the second starts.

Variability is, for example, here in task_creature:

Quote:
//loc.sb.id = 3;
loc.val = Rnd(3);
case (loc.val)
{
[0] loc.sb.id = 34;
[1] loc.sb.id = 35;
[2] loc.sb.id = 36;

}


And, yeah, trying to tweak Blu3's "Love_Party".


Sat Apr 06, 2019 5:05 am
Profile
Rank 17
Rank 17
User avatar

Joined: Fri Feb 27, 2015 2:06 pm
Posts: 682
Location: Australia
Yea it seems if there's more then 1 sound file it overlaps them
I did not notice this in story mode but there are some differences between story and fast

I don't have an solutions other then use only 1 sound file per stage

_________________
To install a mod

ESKARN'S TUTORIALS

Eskarn's Dungeon Mod(BETA)

Eskarn's puzzle map (story)


Mon Apr 08, 2019 6:22 am
Profile
Rank 5
Rank 5

Joined: Thu Jun 21, 2018 8:24 am
Posts: 16
Location: Russia
Thanks for help anyway, Eskarn.

Right now i have a couple of ideas:
1. Continue messing with the sound parameters, maybe I'll find the needed one.
2. Add some "emptyness" an the beginning and the end of the file, but I don't like the latter.


Mon Apr 08, 2019 7:17 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group.
Designed by X-Moon Productions.