v0.9.96d
- [NEW] Ara mini ja no requereix SDL_mixer, usa JailAudio
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
return {
|
||||
peiv = function()
|
||||
setcolor(1, 1, 1, 1)
|
||||
palcolor(1, 1, 1, 1)
|
||||
return "HOLA OTHER UNIT"
|
||||
end
|
||||
}
|
||||
|
||||
@@ -192,6 +192,18 @@ int JA_SetMusicVolume(int volume)
|
||||
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)
|
||||
{
|
||||
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();
|
||||
void JA_DeleteMusic(JA_Music_t *music);
|
||||
int JA_SetMusicVolume(int volume);
|
||||
void JA_SetMusicPosition(float value);
|
||||
float JA_GetMusicPosition();
|
||||
void JA_EnableMusic(const bool value);
|
||||
|
||||
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) {
|
||||
JA_StopMusic();
|
||||
//Mix_FadeOutMusic(t);
|
||||
}
|
||||
|
||||
void musicpos(float value)
|
||||
{
|
||||
//Mix_SetMusicPosition(value);
|
||||
JA_SetMusicPosition(value);
|
||||
}
|
||||
|
||||
float musicpos()
|
||||
{
|
||||
return 0; //Mix_GetMusicPosition(music);
|
||||
return JA_GetMusicPosition();
|
||||
}
|
||||
|
||||
int loadsound(const char *filename) {
|
||||
|
||||
Reference in New Issue
Block a user