sample mixing

sample mixing

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
monohouse

sample mixing

Post by monohouse »

is there a way to mix samples at different volumes without modifying the data itself ?

is there any form of internal mixing ?
or a form of variable or control that defines how loud a sample will play ?

modifying the data itself to properly mix the sounds is not a practical solution, every change in the mix will require resampling of the entire audio data which will obviously also result in loss of quality in the process.

is it just as stupid as modifying volume of all samples defined by the sample volumes in the registry and then playing them ?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

You can play sounds by script

Code: Select all

play-sound("your_sound", 23);
"your_sound" points to your_sound.wav, 23 is the volume.

To mix stuff simply put a sleep between that or what ever. It's not really mixing but should work if you reduce volume.
monohouse

Post by monohouse »

where is the script ? where does that go into ?
Post Reply

Return to “Engine”