|
4 registered members (Volkovstudio, Grant, Quad, 1 invisible),
11,248
guests, and 4
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Music handles
[Re: Joey]
#36750
11/25/04 13:16
11/25/04 13:16
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
It may only be possible to do it via DLL but not in C-Script. If you're learning C# (and not C++, which C++ takes a lot of time to learn and master), you might want to wait for Conitec to migrate their C++ code over to .net (or maybe not but I'm hoping that if Conitec want to test 3DGS for new version of Windows code-named Longhorn, then Conitec will need to port 3DGS over to .net to make it work for Longhorn).
Anyway, sorry and I didn't mean to hijack your thread--but I just though I'd let you know if you don't want to learn C++ but would like to have a feature for saving song position for that song, which is not possible with C-Script.
Regards, Grayson Peddie
|
|
|
Re: Music handles
#36752
11/25/04 21:09
11/25/04 21:09
|
Joined: Jan 2003
Posts: 4,615 Cambridge
Joey
Expert
|
Expert
Joined: Jan 2003
Posts: 4,615
Cambridge
|
actually it's possible as i said...
Code:
// time jumping needs, should be 1
var jump_time = 1;
// moves pos seconds forwards
function media_jump(handle, pos, vol) //media handle, position in seconds (!), volume after jumping
{
media_tune(handle, 0.1 /*or 1, i don't know*/, 100 * pos * (1/jump_time), 0);
sleep(jump_time);
media_tune(handle, vol, 100, 0);
}
joey.
|
|
|
|