Comments (8)
Although I can't reproduce this problem on any of my devices, it seems to be due to the fact that for some reason the start of MP3/OGG/FLAC music effect playback on this PC is so slow that it causes a noticeable delay. What happens if you switch the music from External to MIDI in the game settings?
from fheroes2.
Hello @oleg-derevenetz,
Although I can't reproduce this problem on any of my devices, it seems to be due to the fact that for some reason the start of MP3/OGG/FLAC music effect playback on this PC is so slow that it causes a noticeable delay. What happens if you switch the music from External to MIDI in the game settings?
The "Music Type" setting is set to "MIDI" with the default fheroes2 soundfonts, and there are no MP3/OGG/FLAC files present when the problem described was detected.
from fheroes2.
Hello @oleg-derevenetz,
Although I can't reproduce this problem on any of my devices, it seems to be due to the fact that for some reason the start of MP3/OGG/FLAC music effect playback on this PC is so slow that it causes a noticeable delay. What happens if you switch the music from External to MIDI in the game settings?
The "Music Type" setting is set to "MIDI" with the default fheroes2 soundfonts, and there are no MP3/OGG/FLAC files present when the problem described was detected.
Hi @LeHerosInconnu. How about setting the volume to zero? I believe that should skip playing any sounds so that we can verify if that is the issue.
from fheroes2.
How about setting the volume to zero? I believe that should skip playing any sounds so that we can verify if that is the issue.
IIRC WAV sound effects are played independently of audio effects volume settings (if volume is set to 0, they just play with volume 0). WAV playback itself is very cheap in comparison with MP3, not to mention MIDI.
from fheroes2.
Hello @zenseii,
Hello @oleg-derevenetz,
Although I can't reproduce this problem on any of my devices, it seems to be due to the fact that for some reason the start of MP3/OGG/FLAC music effect playback on this PC is so slow that it causes a noticeable delay. What happens if you switch the music from External to MIDI in the game settings?
The "Music Type" setting is set to "MIDI" with the default fheroes2 soundfonts, and there are no MP3/OGG/FLAC files present when the problem described was detected.
Hi @LeHerosInconnu. How about setting the volume to zero? I believe that should skip playing any sounds so that we can verify if that is the issue.
I've turned all the settings to "off" and the problem can still be observed.
In fheroes2:
from fheroes2.
Probably WAV sound effects playback on this Windows 7 PC is now started with a noticeable delay for some reason, which is bad, because WAV playback is very cheap, it doesn't need soundfonts or any complex decoding, like compressed audio formats (MP3 etc). Probably #8375 is observed due to the same reason - WAV sounds of horse steps are started with delay and still not finished when animation is already finished. Don't know why, probably it's some SDL-related issue or maybe even OS-related. I can't reproduce this so far, but I don't have Windows 7.
from fheroes2.
Marking this as an audio-related issue but it's just a guess because I cannot reproduce this on my devices.
from fheroes2.
Hello @Branikolog,
Hi, @LeHerosInconnu Are you using MIDI? I believe this issue is valid only for MIDI sound, while for external music I cannot reproduce this problem.
Yes, MIDI is used when the problem is detected. I did a test with .ogg files in the MUSIC folder and "Music Type" set to "External" and the problem is no longer present. There must have been a change in MIDI management at some point.
Originally posted by @LeHerosInconnu in #8375 (comment)
from fheroes2.
Related Issues (20)
- Capitulation logic HOT 2
- Battle: Improve attack strategy to loose less troops HOT 1
- Battle: computer is rushing and loosing units HOT 1
- Battle: if we definetely loose, then try to kill as much units, as we can
- I suggest new feature - rating of the map HOT 1
- Castle screen, scroll bar becomes too tiny for a sizeable trade
- High scores screen, the default name can be too long to fit the list HOT 4
- Castle info field is too large and shifted HOT 1
- Show creature info for the editor dialog HOT 1
- Combat, AI behavior, AI shooters tend to spread their shots over different troops (1.1.0 8733)
- [Scenario Editor] Graveyard is in the wrong category HOT 2
- AI doesn't take into an account Troll's regenerative abilities
- Adventure map, sometimes the hero's movement animation is stopped when he enters the stone liths HOT 1
- Combat screen, giant's sprite is displayed on top of the crusader troop's creature count indicator
- Adventure map, optimize the hero's path, taking into account the destination reached on the next turn
- Adventure map, optimize AI behavior of heroes during movement (1.1.0 8733)
- Combat screen, cyclops corpse sprite is displayed on top of the crusader troop's creature count indicator HOT 1
- Combat screen, Ballista info window, take into account the captain/hero's attack for the displayed attack value of archers
- Combat screen, Ballista info window, the movement penalty for troops in the moat is not currently active
- Game crash during AI turn on failed assertion on _pathStart HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fheroes2.