35 Commits

Author SHA1 Message Date
4fc5b47dc9 - [FIX] Si no feia falta conversió de format, la música no apuntava correctament la duració al carregar 2024-12-30 19:52:28 +01:00
1b7fdbd230 - [FIX] La musica duraba la meitat per contar samples en compte de bytes 2024-12-29 08:06:58 +01:00
f5ee23cea3 - [NEW] JA_PlaySoundOnChannel(JA_Sound_t *sound, const int channel, const int loop = 0); 2024-12-28 10:59:25 +01:00
774aebf4a4 - [NEW] JA_FadeOutMusic(const int milliseconds); 2024-12-23 13:34:36 +01:00
b6b3bf452e - [FIX] La música duraba el doble, i ho completaba amb roido 2024-11-27 13:33:07 +01:00
1519725d4a - [NEW] JA_SetMusicPosition() i JA_GetMusicPosition(), per a obtindre o especificar la posició de la música en segons (decimals). 2024-11-26 14:37:23 +01:00
f0687f9f4d - [NEW] JA_LoadMusic() i JA_LoadSound() ara també accepten un buffer de uint8_t* i un tamany, a l'hora de carregar.
- [FIX] JA_PlaySound() de vegades no tornava res
2024-10-06 15:06:11 +02:00
cd2f18212b - [NEW] JA_SetMusicVolume(int volume)
- [NEW] JA_EnableMusic(const bool value)
- [NEW]  JA_SetSoundVolume(int volume)
- [NEW] JA_EnableSound(const bool value)
2024-05-31 18:25:11 +02:00
c79150b24a - Types changed, SDL_Mixer version included 2022-12-01 19:42:20 +01:00
bf1925bb3a Update 'readme.md' v1.2 2022-11-24 16:12:43 +01:00
861bb5e7f9 Merge branch 'master' of https://gitea.sustancia.synology.me/JailDoctor/JailAudio 2022-11-24 16:10:36 +01:00
debd80f6af - Removed volume per channel
- [NEW] JA_SetSoundVolume sets volume for all sound effects
- [NEW] JA_SetMusicVolume sets volume for the music
- JA_SetVolume works as always: sets volume for both, with sounds volume halved.
2022-11-24 16:10:33 +01:00
3ef6742c5d Add 'readme.md' 2022-11-24 15:51:49 +01:00
42986dd46a - Reorganització de la capçalera 2022-11-24 15:50:31 +01:00
cc7ef78d59 - [NEW] int JA_SetChannelVolume(const int channel, int volume) 2022-11-24 15:40:02 +01:00
6d8921b160 - Pa que se calle el compilaoooor en Linux 2022-11-09 13:56:32 +01:00
761119acf2 [FIX] JA_DeleteMusic() crashes, wrong free method 2022-10-07 17:44:23 +02:00
edf7484738 [FIX] SDL_AudioDeviceID is an Uint32, not a pointer 2022-10-07 17:33:43 +02:00
cb1154cb20 - JA_Init() now prevents bad multi-init
- [NEW] JA_Quit()
2022-10-07 17:28:20 +02:00
975fcfd81a Debug info removed v1.1 2022-08-28 09:08:26 +02:00
52df28a4f0 New stb_vorbis version added. OGG loading time optimized. 2022-08-28 09:07:37 +02:00
1ba349f6c3 Afegit "int JA_SetVolume(int volume);" 2022-08-28 08:16:30 +02:00
1623654564 Added function to create new sound from raw buffer 2021-03-26 15:36:11 +01:00
637c5c4677 Hopefully solved memory issues on deallocation 2021-02-17 14:24:43 +01:00
852710d15d JA_GetMusicState & JA_GetChannelState replace paused ones 2021-02-07 22:06:21 +01:00
f94d9294eb #3 Un par de warnings tontos.. 2021-02-05 13:37:56 +01:00
a3527dcad3 Solved some crashes when no music loaded 2021-02-05 13:36:08 +01:00
0b9b2eb511 Channels can be paused, resumed, stopped... v1.0.0 2021-02-04 17:01:00 +01:00
55c9a0ddba WAVs can loop, and OGG and WAV loops can be finite 2021-02-04 14:37:57 +01:00
ac5421a340 OGGs preloading, deleting... 2021-02-04 14:18:45 +01:00
0dbb1d39b2 JA_RestartMusic() renamed to JA_ResumeMusic() 2021-02-03 21:45:05 +01:00
377c760e45 JA_IsMusicPlaying() added 2021-02-03 21:39:28 +01:00
b8b2b417a9 JA_channels is now an Uint8 2021-02-03 19:34:37 +01:00
3cc806bd17 Frequency, format and channels are configurable 2021-02-02 21:18:07 +01:00
6ce37e56e7 First commit 2021-02-02 19:03:48 +01:00