![]() ![]() If this all isnt rocket science to you - go ahead. how do you match this to the first to determine the loop? and to make it worse, a lot of tunes leave their modulation counters free running when they loop, so the second loop actually produces slightly different output than the first. the problem is how you determine that the tune has ended? eg a whole lot of tunes will loop seemlessly, you cant just detect silence. neither is the size of the data related to how long it plays, nor can the player determine the position in the song or its length from it. If it's halfway through the data, show the bar at 50%.Įxcept that is totally NOT how it works. If the program has processed 10% of the data, show the progress bar at 10%. SID files are loaded into memory and the data in them is then processed into sound as the song plays. One of the first thing it requests is the file length (note how that isnt actually always the case, and sometimes it can not show a progress bar either) How does your web browser should you a progress bar for downloads? It does look up the original length in the archive headers How does WinRar show you the progress for extracting files? How do programs show you a progress bar for copying files if they don't know what's in the file? Mute the sound, play it with no speed limit to get the stats, then play it normally with a progress bar/seek bar. Of course it would just sound like a beep, but that would be fine for analyzing the song prior to playing it. Secondly, How long do you think it would take a 1-3Ghz system to internally simulate playing a 3K SID file so that it would know how long the song is? Or are you under the impression that song length can only be calculated if the music is played in real-time? If you were to remove the speed limit, SID players could probably play the entire song in half a second. ![]() If it's halfway through the data, show the bar at 50%. How do programs show you a progress bar for copying files if they don't know what's in the file? How does WinRar show you the progress for extracting files? How does your web browser should you a progress bar for downloads? SID files are loaded into memory and the data in them is then processed into sound as the song plays. You stopped reading after the part you quoted, didn't you? I want something small and efficient that I can run on my own system. I don't like using online sites for stuff like this. A modern system could probably do an uncapped internal rendering of the entire file in a second or two. SID files are tiny and even music ripped from games is pretty small by today's standards. Not perfect, but better than nothing.Īs for seeking. Just have a bar that shows what percentage of the file has been processed so far. ![]() It wouldn't necessarily have to show an accurate time and then smoothly move as the song plays. I'll concede that seeking might be a problem, but a progress bar should be relatively easy. you'd have to render the whole tune in advance, and then you'd still dont know how long it plays so you can wrap accurately. Seeking or showing progress in a sid player isnt really possible (well, perhaps forward seeking, if you can live with noticeable delay).
0 Comments
Leave a Reply. |