yes i saw that but each time i used multiple PCMs i had some problems with playback and some sfx were lost.The channel number is the second param of jo_audio_play_sound();
if(slSndPCMNum(_Mono)>-1)
for(i=1;i<NB_CHAN;i++)
{
if(!slPCMStat(&m_dat[i]))
{
slSndFlush() ;
//slPCMOff(&m_dat[i]);
PCM_SetLoop(pcm, cnt_loop);
slPCMOn(&m_dat[i],sound->buf,sound->len);
//if(sound->buf!=0x00232000)
//slSndFlush() ;
break;
}
}
well done 🙂 blop blop blop 🙂New version updated with VBT audio fix.
I also added the possibility to change printf color and use multiple color at the same time 🙂
Hi,
New update available with a new demo with advanced animation 🙂
Download: http://jo-engine.org/download/
just tested 🙂 it's looking good, the ship is nicely animated. so who did the sprite ? or is it sprite rip?
Changelog
2/14/2016:
- FIX : jo_sprite_add_bin() and jo_sprite_add_bin_tileset() doesn't work properly
- NEW : Image loading from CD improved (faster)
- NEW: Memory fragmentation reduced when using tileset
- NEW: Get tile count on a jo_tile table using JO_TILE_COUNT()
- Demo Tileset updated
- NEW: jo_printf_with_color() print a text using specific color palette index
- NEW: Per-pixel collision : jo_map_per_pixel_vertical_collision()
- NEW: Map Demo improved with per-pixel and hitbox collision
- NEW: New functions in order to swap little and big endian
- jo_swap_endian_ushort()
- jo_swap_endian_uint()
- NEW: Jo Map Editor 3.2
Changelog
2/21/2016:
- FIX : Strange behaviour when using sprite rotation and horizontal flip twice 😵
- FIX: jo_is_sprite_anim_stopped() doesn't work properly
- NEW: Math functions & constants
- JO_FLOAT_EPSILON
- JO_MIN()
- JO_MAX()
- JO_CHANGE_SIGN()
- jo_is_float_equals_zero()
- NEW: Sidescroller physics (gravity, friction, etc)
- jo/physics.h
- NEW: Sonic Demo (Physics & Collision)
- It's not the Sonic that I'm working on, but you can now write your own 🙂
- NEW: Jo Engine is now C99 compliant (stdbool, etc.)
- I change many function prototypes to use bool type instead of unsigned char
- NEW: New prototype for jo_map_per_pixel_vertical_collision()
- NEW: Jo Map Editor 4.0