-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#pragma once | ||
|
||
#ifndef __IN_SWILIB__ | ||
#include "base.h" | ||
#include "wstring.h" | ||
#endif | ||
|
||
__swilib_begin | ||
|
||
/** | ||
* @addtogroup Player | ||
* @brief Functions for working with builtin media player. | ||
* | ||
* Usage: `#include <swilib.h>` or `#include <swilib/player.h>` | ||
* @{ | ||
*/ | ||
|
||
/** | ||
* Pointer to the magic value for controlling media player. | ||
* @return pointer | ||
* | ||
* ```C | ||
* uint32_t ctrl_code = *RamMPlayer_CtrlCode(); | ||
* ``` | ||
* */ | ||
__swi_begin(0x80E1) | ||
uint32_t *RamMPlayer_CtrlCode() | ||
__swi_end(0x80E1, RamMPlayer_CtrlCode, ()); | ||
|
||
/** | ||
* Play previous song in standart media player. | ||
* */ | ||
__swi_begin(0x1FF) | ||
void MEDIA_PLAYLAST() | ||
__swi_end(0x1FF, MEDIA_PLAYLAST, ()); | ||
|
||
/** | ||
* Get the filename of the current song in the media player. | ||
* @return pointer to the WSHDR | ||
* */ | ||
__swi_begin(0x082) | ||
const WSHDR *GetCurrentTrackFilename() | ||
__swi_end(0x082, GetCurrentTrackFilename, ()); | ||
|
||
__swilib_end | ||
|
||
/** @} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters