From db8bc5f9e386c76531dfe679df022dd05d3dd27a Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Mon, 14 Aug 2017 14:29:04 +0200 Subject: + Documentation about sound sources. * Sine-like effect used for runways now moved to SystemCalculateSine(). * Bugfix: ptrPlayer->FlightDataPage is now decreased if there aren't enough active aircraft. * On main menu, 2 players option is now disabled if pad 2 is disconnected. * More work on FPS measurement (not working yet). * Number of used SPU voices is now returned on SfxUploadSound(). --- Source/System.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/System.h') diff --git a/Source/System.h b/Source/System.h index cef7b4e..3bce5e4 100644 --- a/Source/System.h +++ b/Source/System.h @@ -105,6 +105,12 @@ int32_t SystemIndexOf_U16(uint16_t value, uint16_t* array, uint32_t sz); // Function overload for uint8_t data type. int32_t SystemIndexOf_U8(uint8_t value, uint8_t* array, uint32_t from, uint32_t sz); +// Returns frames per second. +volatile uint8_t SystemGetFPS(void); + +// Increase temp_fps in order to calculate frame rate. +void SystemAcknowledgeFrame(void); + void SystemCyclicHandler(void); void SystemClearBuffer(void); @@ -123,6 +129,10 @@ void SystemDevMenuToggle(void); void SystemDevMenu(void); +void SystemCalculateSine(void); + +unsigned char SystemGetSineValue(void); + /* ************************************** * Global Variables * * **************************************/ -- cgit v1.2.3