Comments (4)
I'd say that the reason is the same as in #8376 and #8375 - WAV sound effect playback is started with a noticeable delay on this particular PC, which shouldn't be, because WAV playback is very cheap.
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.
I would say that the problem here and in other similar issues (#8375, #8376) is that WAV sound is played at the same moment that the MIDI music starts (and the MIDI music is a heavy thing), and until the MIDI music starts, it's impossible to play anything else, because SDL_mixer functions themselves are not safe for simultaneous use from multiple threads (at least it seems so after a cursory acquaintance with their insides).
This problem is observed with MIDI music only (not with external music, because external MP3/FLAC/OGG music is a relatively light thing in comparison with MIDI). Playback of horse steps is performed in background thread, therefore, their playback is just delayed a bit - that's why their playback continues a little longer after the hero stops, while playback of musical effects for map objects is performed in the main thread, and this can lead to animation delays when the corresponding object located on the border of two terrains with different music is visited. The same applies to the playback of musical effects for units at the beginning of the battle when the background battle MIDI music starts.
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)
- Mouse cursor too high inertion HOT 2
- Adventure map, mouse cursor position after the action of selecting a castle with a left click held on the castle sprite
- [Scenario Editor] Hero's default experience points number should be displayed with its possible range
- POL 2 Island of Chaos - mission is impossible (red and yellow are allied to each other) HOT 1
- AI doesn't see partially unveiled castle. HOT 2
- AI is ignoring patrol limit HOT 1
- Castle Construction screen, quantity of resources is not updated when construction takes place after changing castle with the right left arrows at the bottom of the screen HOT 1
- Adventure map, after a combat, the creature numbers at the bottom right of the screen should be updated before returning to the adventure map screen
- Game, Information about XP
- Adventure Map, Treasure Chest window, sprites for the gold pile and experience points star, and the text below the sprites, are not centered horizontally in relation to the position of the corresponding "YES" "NO" buttons
- Main menu, resolution selection window is missing pop up info HOT 2
- Castle screen, additional mage guild level construction issue HOT 1
- AI doesn't protect a castle despite having troops there HOT 4
- improvements to the list of savegames dialog HOT 6
- Adventure map, Summon Boat, rock object prevents the summon boat spell from being cast on an available adjacent ocean location
- Campaign order in fheroes2 HOT 1
- Combat, Surrender with only creatures resurrected with the resurrect spell (not resurrect true)
- Combat, Surrender with only elemental creatures summoned with summon elemental spells HOT 2
- Adventure map, Hero level-up window, move position of hero's skill numbers to create a gap between the shadow of the slash and the top of the hero's button
- Castle screen, Troop arrangement, make using the mouse wheel up and the mouse wheel down perform the same actions as the arrow up and arrow down keys on the keyboard HOT 3
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.