Options to pause and stop sound files in dialog.tlk #189
Replies: 7 comments 1 reply
-
I agree, that would be a useful improvement. I'll add it to my todo list. In the meantime you could open the WAV resource view with the |
Beta Was this translation helpful? Give feedback.
-
@Incrementis I have taken the opportunity to implement a new class for playing sound clips. It is currently enabled for the WAV resource view and the resource reference datatype that lists WAV resources (including the sound reference in the string table). Could you please test this feature and see if you can find ways to "break" it or make it behave in unexpected ways? It's an implementation from scratch which may still have some bugs left. (A known issue is that sound playback in the String Editor won't stop automatically when the window is closed.) I would also be interested if all the associated UI elements (time labels, progress slider, loop checkbox, etc.) are suitable for the situation where it is displayed. The player is customizable, so I can easily add or remove UI elements from view. Download: https://github.com/Argent77/NearInfinity/releases/tag/nightly |
Beta Was this translation helpful? Give feedback.
-
Yes, I can do that. I will report here. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Reported issues should be fixed in the latest nightly. Playback controls have been improved. WAV resource view provides separate play and pause buttons. Sound playback panel on resource lists uses combined play/pause button for space reasons, but I added a tooltip with further info. |
Beta Was this translation helpful? Give feedback.
-
There are some visual inconsistencies regarding the progress slider. The inconsistencies may be seen as outliers in some cases, but I will use forum thread examples to show that there is indeed interest in longer recordings (besides my personal interest), which will be addressed at the end of this comment. OS:
Scaling:
Screen resolution during testing:
Game:
Visual Examples(from OGG files from self-made recordings)Comparing over 2 minutes length
Note: The time symbols in the display overlap. Comparing over 3 minutes length
Note: This time the length is more than 2 minutes, although there are not overlaps in all instances. Length of over 12 min(Rare)
Note: This recording is actually from the book "BOOK50.ITM - History of the North VIII" and has as far as I can tell compared to the other books a large character count(image below: notepad++) I also think the overlap might be hard to resolve at some point regarding the time length of a sound file. Interest in longer recordings: |
Beta Was this translation helpful? Give feedback.
-
Some overlapping is situational and cannot really be avoided (without creating other side effects). Time labels are applied in regular intervals as well as at the beginning and end of a sound clip. An overlap may occur if a regular interval and the end of the sound clip are in close proximity. Time label intervals already depend somewhat on the sound clip length, but I only took vanilla clips into account for interval calculations. I'll see if I can fine-tune it further for clip lengths of 10 minutes or more. But it cannot be extended indefinitely since the interval thresholds are implemented manually. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When setting a strref with an associated sound file, I listened to a slightly longer sound file, namely “CHAPTER1.WAV”. The sound file lasts 24 seconds.
There is no option to pause or stop the sound, as is the case with directly selecting a sound file in the WAV folder.
Since I'm working on a mod that has sound files that can reach for a strref minutes, being able to pause and stop the sound would be beneficial in this case.
Example for :
Suggestion: See screenshot.

EDIT:
Version: v2.4-20240914
Beta Was this translation helpful? Give feedback.
All reactions