Some questions about V2
category: code [glöplog]
revival: *mumble* or use modules *mumble*
I do really think we have to find something else.
Really. This troll is going downhill. Or we make a demo about it?
Really. This troll is going downhill. Or we make a demo about it?
rez: no idea, sorry :(
rez: I hear what you're saying. IMO it's a lot more like asking people to write their own texture and object generators.
minifmod is a good point. Here's the difference: it is MUCH more difficult to write a softsynth that sounds as nice as V2, than it is to write a basic sample playback engine.
minifmod is a good point. Here's the difference: it is MUCH more difficult to write a softsynth that sounds as nice as V2, than it is to write a basic sample playback engine.
knl: yes, 100% coded by musicians. 60k for the music, 3k for the music driver, 1k for the demo code.
kb_: no problem, I will follow LLB advice and use the infamous getTickCount() to have milliseconds, and use dsGetCurSmp() to subtract the delay between counter's start and music's start :)
@4mat: just give the musician 20k, it's enough.
getTickCount...even the name leaves a bad taste in my mouth.
yeah, at least use timeGetTime() and timeBeginPeriod(1) ...
Wish my wife had those two too ... ;)
I'm digging up this subject again :)
Well, I'm currently using the famous GetTickCount() to synch effects on the music, it seems to works but the problem now is the music start after one second of silence (in winamp with the v2 lib the music start directly, so I think the silence isn't in the music).
How is it possible to get the information when the music start effectively to play?
Well, I'm currently using the famous GetTickCount() to synch effects on the music, it seems to works but the problem now is the music start after one second of silence (in winamp with the v2 lib the music start directly, so I think the silence isn't in the music).
How is it possible to get the information when the music start effectively to play?
I use QueryPerformanceFrequency and family.
Same, GetTickCount() is just way too inprecise.
You could also use the timers from winmm, for more precision. :)
You could also use the timers from winmm, for more precision. :)
Yep, now I'm using QueryPerformanceFrequency too, in fact I was already using it without knowing, I'm using since aaaaaages a nice timer did by my dear Keops :)
Btw, I still have the problem that the music seems to start ~1second after the windows appears :(
Any idea to calculate the time between the intro start <---> music start?
I tried the "IsPlaying()" function but doesn't seems to help :{
Btw, I still have the problem that the music seems to start ~1second after the windows appears :(
Any idea to calculate the time between the intro start <---> music start?
I tried the "IsPlaying()" function but doesn't seems to help :{
Maybe you're loading other resources after displaying the window, causing a delay in the music playback?
Quote:
Any idea to calculate the time between the intro start <---> music start?
Most probably it's the buffer length. And yes, kb has mentioned that often enough, even in his "how to write a proper softsynth" tutorial, and it makes sense to do it that way.