v0.9.96d
- [NEW] Ara mini ja no requereix SDL_mixer, usa JailAudio
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
peiv = function()
|
peiv = function()
|
||||||
setcolor(1, 1, 1, 1)
|
palcolor(1, 1, 1, 1)
|
||||||
return "HOLA OTHER UNIT"
|
return "HOLA OTHER UNIT"
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,6 +192,18 @@ int JA_SetMusicVolume(int volume)
|
|||||||
return JA_musicVolume;
|
return JA_musicVolume;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void JA_SetMusicPosition(float value)
|
||||||
|
{
|
||||||
|
if (!current_music) return;
|
||||||
|
current_music->pos = value * JA_freq;
|
||||||
|
}
|
||||||
|
|
||||||
|
float JA_GetMusicPosition()
|
||||||
|
{
|
||||||
|
if (!current_music) return 0;
|
||||||
|
return float(current_music->pos)/float(JA_freq);
|
||||||
|
}
|
||||||
|
|
||||||
void JA_EnableMusic(const bool value)
|
void JA_EnableMusic(const bool value)
|
||||||
{
|
{
|
||||||
if (!value && current_music != NULL && current_music->state==JA_MUSIC_PLAYING) JA_StopMusic();
|
if (!value && current_music != NULL && current_music->state==JA_MUSIC_PLAYING) JA_StopMusic();
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ void JA_StopMusic();
|
|||||||
JA_Music_state JA_GetMusicState();
|
JA_Music_state JA_GetMusicState();
|
||||||
void JA_DeleteMusic(JA_Music_t *music);
|
void JA_DeleteMusic(JA_Music_t *music);
|
||||||
int JA_SetMusicVolume(int volume);
|
int JA_SetMusicVolume(int volume);
|
||||||
|
void JA_SetMusicPosition(float value);
|
||||||
|
float JA_GetMusicPosition();
|
||||||
void JA_EnableMusic(const bool value);
|
void JA_EnableMusic(const bool value);
|
||||||
|
|
||||||
JA_Sound_t *JA_NewSound(Uint8* buffer, Uint32 length);
|
JA_Sound_t *JA_NewSound(Uint8* buffer, Uint32 length);
|
||||||
|
|||||||
5
mini.cpp
5
mini.cpp
@@ -1133,17 +1133,16 @@ void resumemusic() {
|
|||||||
|
|
||||||
void stopmusic(const int t) {
|
void stopmusic(const int t) {
|
||||||
JA_StopMusic();
|
JA_StopMusic();
|
||||||
//Mix_FadeOutMusic(t);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void musicpos(float value)
|
void musicpos(float value)
|
||||||
{
|
{
|
||||||
//Mix_SetMusicPosition(value);
|
JA_SetMusicPosition(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
float musicpos()
|
float musicpos()
|
||||||
{
|
{
|
||||||
return 0; //Mix_GetMusicPosition(music);
|
return JA_GetMusicPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
int loadsound(const char *filename) {
|
int loadsound(const char *filename) {
|
||||||
|
|||||||
Reference in New Issue
Block a user