Added capsGetShimLibraryVersion. Added comments to audio.h.

This commit is contained in:
yellows8 2019-08-27 19:14:18 -04:00
parent 3999ec147e
commit c790aa0fab
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
3 changed files with 22 additions and 0 deletions

View File

@ -8,6 +8,7 @@
#include "../types.h"
/// PcmFormat
typedef enum {
PcmFormat_Invalid = 0,
PcmFormat_Int8 = 1,
@ -18,6 +19,7 @@ typedef enum {
PcmFormat_Adpcm = 6,
} PcmFormat;
/// AudioDeviceName
typedef struct {
char name[0x100];
} AudioDeviceName;

View File

@ -52,3 +52,6 @@ typedef enum {
AlbumImageOrientation_Unknown3 = 3, ///< Unknown.
} AlbumImageOrientation;
// Get the ShimLibraryVersion.
u64 capsGetShimLibraryVersion(void);

17
nx/source/services/caps.c Normal file
View 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;
}