sPOiDar / fvtt-module-stream-view

FoundryVTT module that provides a minimal UI view with automated camera work, ideal for streaming or recording games.
MIT License
12 stars 11 forks source link

Ambient sounds #26

Closed moonwolf-github closed 2 years ago

moonwolf-github commented 2 years ago

It seems that ambient sounds are not supported. Is there a way to do this?

sPOiDar commented 2 years ago

Hmm, possibly - Foundry relies on a token being selected to play ambient audio, and only token owners (or GMs) can select tokens, not observers.

Would probably have to patch some Foundry code to make ambient sounds consider all tokens selected at all times for the stream user, this would mean you'd hear sounds for all tokens no matter how far apart they are, might mean you get multiple sounds playing from different parts of the map if your party is split.

moonwolf-github commented 2 years ago

Or maybe place an invisible token owned by the stream user near the currently followed token? Is this possible?

sPOiDar commented 2 years ago

There isn't really a concept of "currently followed token" - in automatic mode, that's usually all tokens, in directed mode the GM can point the camera where ever they like.

We could maybe fake a token at the center of the screen, but that's frequently unlikely to yield very useful results.

moonwolf-github commented 2 years ago

It's better than nothing i suppose... Or maybe stick this fake token to one chosen by GM?

moonwolf-github commented 2 years ago

As a workaround I made an Actor owned by the stream user and using "Follow Me!" module bound his token to the token of one of the players. I'll test it tonight and we'll see.

sPOiDar commented 2 years ago

I tested out playing sound at the center of the camera position. Seems to work pretty well, since the viewer hears sounds as if they're at the center of the screen.

If your player tokens are very far away from each other you may not hear what they hear, and whilst it would be possible (if a little more complicated) to play everything that all tokens can hear, but I'm not sure if that would actually be an improvement, since then you might have conflicting audio playing from different parts of the map.

I think I'm happier with the screen center option, and will likely package this up for release.

sPOiDar commented 2 years ago

Available in v1.2.0