xmoonproductions.org https://www.xmoonproductions.org/ |
|
Not "interlacing" breath sounds https://www.xmoonproductions.org/viewtopic.php?f=27&t=5729 |
Page 1 of 1 |
Author: | Waldorf [ Fri Apr 05, 2019 7:25 am ] |
Post subject: | Not "interlacing" breath sounds |
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? |
Author: | Eskarn [ Fri Apr 05, 2019 10:52 am ] |
Post subject: | Re: Not "interlacing" breath sounds |
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 |
Author: | Waldorf [ Sat Apr 06, 2019 5:05 am ] |
Post subject: | Re: Not "interlacing" breath sounds |
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". |
Author: | Eskarn [ Mon Apr 08, 2019 6:22 am ] |
Post subject: | Re: Not "interlacing" breath sounds |
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 |
Author: | Waldorf [ Mon Apr 08, 2019 7:17 am ] |
Post subject: | Re: Not "interlacing" breath sounds |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |