tuxanci2-sdk
SDK for tuxanci2
Log | Files | Refs | README | LICENSE

ft2.h (591B)


      1 #ifndef TA_FT2_H
      2 #define TA_FT2_H
      3 
      4 #include <tuxanci2/syscall.h>
      5 #include <tuxanci2/abi.h>
      6 #include <stdint.h>
      7 #include <stdbool.h>
      8 #include <stddef.h>
      9 
     10 static inline bool ta_ft2_load(uint8_t file) {
     11 	return ta_syscall(TA_SYS_FT2_LOAD, file, 0, 0, 0, 0, 0) != 0;
     12 }
     13 
     14 static inline bool ta_ft2_play(void) {
     15 	return ta_syscall(TA_SYS_FT2_PLAY, 0, 0, 0, 0, 0, 0) != 0;
     16 }
     17 
     18 static inline void ta_ft2_stop(void) {
     19 	ta_syscall(TA_SYS_FT2_STOP, 0, 0, 0, 0, 0, 0);
     20 }
     21 
     22 static inline bool ta_ft2_is_playing(void) {
     23 	return ta_syscall(TA_SYS_FT2_IS_PLAYING, 0, 0, 0, 0, 0, 0) != 0;
     24 }
     25 
     26 #endif // TA_FT2_H