SteamVR

SteamVR

SteamVR Workshop
Customize your SteamVR experience by finding new backgrounds, 3D environments, controllers and base station models.
Learn More
Clu 1 Jul 15, 2019 @ 1:28pm
[SOLVED] How to create .vsnd from .ogg
So I've been reading here: https://developer.valvesoftware.com/wiki/SteamVR/Environments/Adding_Sound/Soundevents

And it says the vsnd is created automatically.
I dont understand how this works exactly, I placed a .ogg that I want to play refer to is a .vsnd and it doesnt play. I've tried renaming it to vsnd which I was told not to do and it still won't play.

It seems like theres something really simple im missing here.

I think I've managed to create the vsnd but its not showing up or playing in hammer. But theres now a vsnd_c in the game/ADDON/Sounds folder
Last edited by Clu; Jul 16, 2019 @ 2:40am
< >
Showing 1-6 of 6 comments
Rectus 13 Jul 15, 2019 @ 2:07pm 
I don't think the tools support importing any compressed sound formats. You'll have to convert it to a .wav file first, the tools should compile it automatically if they find a supported file.
Clu 1 Jul 15, 2019 @ 2:25pm 
Ok awesome, that seemed to work, thankyou. I can now play the file in the asset browser.
However I can't seem to get it to play in hammer using a point_soundevent
Rectus 13 Jul 15, 2019 @ 2:39pm 
That sounds like an issue with your soundevents file, mind posting it?
Clu 1 Jul 15, 2019 @ 2:49pm 
Sure, appreciate you taking the time to look at this

<!-- kv3 encoding:text:version{e21c7f3c-8a33-41c5-9977-a76d3a32aa0d} format:generic:version{7412167c-06e9-4698-aff2-e63eb59037e7} --> { radio = { type = "destinations.simple_vr" volume = 0.4 pitch = 1.0 delay = 0.1 use_hrtf = 0.0 vsnd_files = "sounds/banditradio.vsnd" } }

And this is the set up of what I have in hammer
https://imgur.com/SqayW4e
Rectus 13 Jul 15, 2019 @ 3:13pm 
The soundevent looks good, the entity needs to have the Sound Event Name set to radio. If it still doesn't play like that, maybe try triggering it manually instead of having it play on spawn.
Clu 1 Jul 15, 2019 @ 3:43pm 
That work! Such a small thing, I tried putting the name of the sound find in Sound Event Name.
Thankyou!
< >
Showing 1-6 of 6 comments
Per page: 1530 50