mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Added capsGetShimLibraryVersion. Added comments to audio.h.
This commit is contained in:
parent
3999ec147e
commit
c790aa0fab
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include "../types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
|
/// PcmFormat
|
||||||
typedef enum {
|
typedef enum {
|
||||||
PcmFormat_Invalid = 0,
|
PcmFormat_Invalid = 0,
|
||||||
PcmFormat_Int8 = 1,
|
PcmFormat_Int8 = 1,
|
||||||
@ -18,6 +19,7 @@ typedef enum {
|
|||||||
PcmFormat_Adpcm = 6,
|
PcmFormat_Adpcm = 6,
|
||||||
} PcmFormat;
|
} PcmFormat;
|
||||||
|
|
||||||
|
/// AudioDeviceName
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char name[0x100];
|
char name[0x100];
|
||||||
} AudioDeviceName;
|
} AudioDeviceName;
|
||||||
|
@ -52,3 +52,6 @@ typedef enum {
|
|||||||
AlbumImageOrientation_Unknown3 = 3, ///< Unknown.
|
AlbumImageOrientation_Unknown3 = 3, ///< Unknown.
|
||||||
} AlbumImageOrientation;
|
} AlbumImageOrientation;
|
||||||
|
|
||||||
|
// Get the ShimLibraryVersion.
|
||||||
|
u64 capsGetShimLibraryVersion(void);
|
||||||
|
|
||||||
|
17
nx/source/services/caps.c
Normal file
17
nx/source/services/caps.c
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#include <string.h>
|
||||||
|
#include "types.h"
|
||||||
|
#include "result.h"
|
||||||
|
#include "arm/atomics.h"
|
||||||
|
#include "kernel/ipc.h"
|
||||||
|
#include "kernel/event.h"
|
||||||
|
#include "kernel/tmem.h"
|
||||||
|
#include "services/sm.h"
|
||||||
|
#include "services/caps.h"
|
||||||
|
#include "runtime/hosversion.h"
|
||||||
|
|
||||||
|
u64 capsGetShimLibraryVersion(void) {
|
||||||
|
u64 version=1; // [7.0.0-8.1.0]
|
||||||
|
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user