Commit Graph

36 Commits

Author SHA1 Message Date
d704614b23 - [FIX] Che, se m'havia colat un error 2025-03-27 13:13:12 +01:00
1d6d92a0b2 - [FIX] Al acabar un fadeoutmusic podria petar 2025-03-27 13:08:49 +01:00
861c227c54 - [FIX] Evitar que sonen varies musiques a l'hora
- [FIX] ResumeAudioStream al playar la musica
- [FIX] Parar un canal de audio abans de intentar usar-lo per a un nou só
- [FIX] No permetre canals negatius
- [FIX] Alliberar el stream al parar un canal
- [FIX] Arreglat el control de volum en l'aplicació de exemple
2025-03-27 12:54:14 +01:00
37776fce4a - Puto free del sdl no es igual en tots els SO. 2025-03-27 12:21:30 +01:00
c61f02faff - Ultims commits de la rama principal aplicats (no probat) 2025-03-27 12:04:43 +01:00
e994ab2678 - Exemple updatat a SDL3 2025-03-27 09:40:13 +01:00
d7d813718c - Pas complet a SDL3 2024-11-06 20:23:35 +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