Is it safe to modify sound buffers volume each cicle?

orcomarcio

Veteran
Veteran
Joined
Nov 26, 2015
Messages
104
Reaction score
20
First Language
Italian
Hi, i created a system for sounds that chance intensity when you get close. I call a script before playing a SE and it makes that se loops and changes volume based on the distance from the player. So far so good.
The game though sometimes crashes (even before I implemented this, but was possibly less). I didn't think that this, between all my changes to the source code, could be a culprit but after testing around a bit I saw that the crashes were less if I removed a modification i made to the AudioManage.stopBgm, in wich i changed this._bgmBuffer.stop()this._bgmBuffer.fade() to automatically fade it. Somehow this seems to have made the system less stable (might be a coincidence but it seems it caused a lot of crashes).
So now I'm curious, is it risky to mess with sounds in general? (ex. changing some of the SE sounds volumes at each cicle?)
 

Windows i7

Veteran
Veteran
Joined
Nov 4, 2017
Messages
378
Reaction score
1,157
First Language
English
Primarily Uses
RMMV
Check the crash log. There should be specific errors. Keep the debugger open and you can see errors as they happen.
 

orcomarcio

Veteran
Veteran
Joined
Nov 26, 2015
Messages
104
Reaction score
20
First Language
Italian
I wish I would get a debugger error. These are real crashes, as in the game just closes itself.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Any also thought it's too cringy to put the word "and you" in your credit as a special thanks?
Cause that's what I thought...
Everyone in the US right now: Please stay safe.
Symphony Celestia: Prophecy of the Falling Stars RPG Maker music pack WIP. Symphony Celestia is a new series that focuses on symphonic and orchestrated music to tell a story. Each story will include compositions that make up that story from beginning to end. Themes include: Battles, adventures, character themes, etc. Below is a video preview to the first story.

Jumping and gravitation 0.1 build - RPG Maker MV
It's ironic, but one of the many hilarious things done with Shia's Just Do It speech was to make a hype song, and....I know what it is.....but I still get inspired by it! I'm like..."Yes I can!!"

Forum statistics

Threads
97,975
Messages
948,252
Members
129,228
Latest member
T-Rylo
Top