Product Chat / Only 2 sounds at once?

Author
Message
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 31st Mar 2015 18:49
why is there only 2 sounds playable at the same time I have music playing a door opening and i have assigned a buzzing sound to a light, but when the buzz is going the door opening sound does not play, and vice versa... will there be an update soon to allow more polyphony??

I really hope so, as to build atmosphere sound needs to be good, the 3D engine is impressive already.

Also what is the signifcance of sound0 string and sound1 string in the properties of an object, is sound1 ever used?
KeithC
Senior Moderator
18
Years of Service
User Offline
Joined: 27th Oct 2005
Location: 1x1x1 Cube
Posted: 31st Mar 2015 20:50
From this very thread on Steam (via Lee):

Quote: "You can have MANY sounds overlaying each other if you like. Just create a soundzone, change the script to musicinzone.lua and then assign a music WAV file. Then create a second, third, forth, each with its own track and see how they all try to play at once. For the sound0 and sound1 fields, these are used when the entity uses a script that calls PlaySound(e,0) or PlaySound(e,1) respectively. You can also use the LoopSound, StopSound and similar commands too. "
Intel Core i7-4820K CPU @ 3.70GHz, 16GB RAM, NVIDIA GeForce GTX 770
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 31st Mar 2015 20:53
thanks just read that on steam.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Apr 2015 19:07 Edited at: 1st Apr 2015 19:08
you can only assign 2 sounds to 1 object/zone but it should still play all (unlimited) sounds from multiple objects as long as it's scripted correctly

sound0 and sound1 are simply the names to tell between those 2 sounds, for example a doorbell might be set as sound0 and a knocking effect might be sound1
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 1st Apr 2015 20:11
Quote: "change the script to musicinzone.lua and then assign a music WAV file"

It can be ogg file?


Quote: "sound0 and sound1 are simply the names to tell between those 2 sounds"

Looks like default.lua does not play sounds, at leas for me, and default.lua file is not in my scriptbanck folder, it should be harcode now.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 8.1 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
m2design
GameGuru TGC Backer
14
Years of Service
User Offline
Joined: 25th Mar 2010
Location:
Posted: 2nd Apr 2015 06:13
@3com
Way back in December I ask the question - where is the default.lua file found and the answer by pirate myke was...
Quote: "The file does not exist in the folder structure. If any thing it is a place holder for the importer.
"
Windows pro 8.1 with 8.1 update,64 bit|AMD FX-6200 Six-core-3.80 Ghz |CPU PASSMARK 6,142 |Memory 10GB |NVIDIA GEFORCE GTX 660 SC |GPU PASSMARK 4,114
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 2nd Apr 2015 06:54
Nice to know!, thanks a lot m2design.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 8.1 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM

Login to post a reply

Server time is: 2024-05-06 10:29:52
Your offset time is: 2024-05-06 10:29:52