done by brutal
logo done by brutal :: vote for the logos you like and be a lamah !




Some questions about V2
category: code

  previous page
go to page of 2  
revival: *mumble* or use modules *mumble*
added on the 2011-03-25 15:38:31 by 4mat  
4mat
I do really think we have to find something else.
Really. This troll is going downhill. Or we make a demo about it?
added on the 2011-03-25 15:56:52 by knl  
knl
rez: no idea, sorry :(
added on the 2011-03-25 16:13:29 by kb_  
kb_
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.
added on the 2011-03-25 16:33:30 by revival  
revival
knl: yes, 100% coded by musicians. 60k for the music, 3k for the music driver, 1k for the demo code.
added on the 2011-03-25 16:35:04 by 4mat  
4mat
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 :)
added on the 2011-03-25 17:11:52 by rez  
rez
@4mat: just give the musician 20k, it's enough.
added on the 2011-03-25 17:17:26 by knl  
knl
getTickCount...even the name leaves a bad taste in my mouth.
added on the 2011-03-25 20:43:46 by Ferris  
Ferris
yeah, at least use timeGetTime() and timeBeginPeriod(1) ...
added on the 2011-03-25 20:59:21 by kb_  
kb_
Wish my wife had those two too ... ;)
added on the 2011-03-25 22:31:34 by Punqtured  
Punqtured
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?
added on the 2011-04-13 10:01:58 by rez  
rez
I use QueryPerformanceFrequency and family.
added on the 2011-04-13 17:10:15 by xernobyl  
xernobyl
Same, GetTickCount() is just way too inprecise.

You could also use the timers from winmm, for more precision. :)
added on the 2011-04-13 17:27:52 by mudlord  
mudlord
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 :{
added on the 2011-04-13 18:37:38 by rez  
rez
Maybe you're loading other resources after displaying the window, causing a delay in the music playback?
added on the 2011-04-13 18:42:17 by bstrr  
bstrr
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.
added on the 2011-04-13 18:45:12 by Saga Musix  
Saga Musix

  previous page
go to page of 2  

post a new reply
You need to be logged in to post a new reply :: register here





pouët.net 0.9-121f832 © 2000-2013 mandarine - hosted on scene.org
send comments and bug reports to webmaster@pouet.net - contribute on GitHub
page created in 0.017849 seconds.