commit x64 compilation from lulu cause the other branch dont seems to compile properly at home

This commit is contained in:
2026-07-17 16:08:20 +02:00
parent c0f3eeb00d
commit 0efa4ee6f7
625 changed files with 117283 additions and 4426 deletions

View File

@ -0,0 +1,44 @@
/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#include "squirrel.h"
#include "script_squirrel/legacy/binding_helpers.h"
#include "core/sound.h"
using namespace GS::Audio;
using namespace GS::Script;
//------------------------------------------------------------------------------
SQInteger SoundGetDuration(HSQUIRRELVM vm)
{
__SQ_GETSINGLESAFEPTR(s, Sound, typetag_Sound)
__SQ_RETURNINT(s->mixer_data.IsValid() ? s->mixer_data->Get()->duration.toMs() : -1)
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void RegisterSoundBinding(HSQUIRRELVM vm)
{
/*#
Topic: Sound
Desc: A sound object stores audio data that can be played back by the sound mixer.
Type: Sound
Related: Mixer
#*/
/*#
Section: SoundGeneric
Desc: Generic functions
#*/
/*#
Func: SoundGetDuration
Proto: int:sound
Desc: Returns the sound duration in milliseconds.
#*/
sq_register(vm, SoundGetDuration, "SoundGetDuration", _SC(".x"));
}
//------------------------------------------------------------------------------