Skip to content

Commit

Permalink
bsnes: Document Spec structs
Browse files Browse the repository at this point in the history
  • Loading branch information
carmiker committed Sep 22, 2024
1 parent 78b9b74 commit cfdacfd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/bsnes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

namespace Bsnes {
namespace Audio {
/**
* Audio Specifications - Specify audio parameters
*/
typedef struct _Spec {
double freq; /**< Output frequency (Hz) */
unsigned spf; /**< Samples per frame (approx) */
Expand All @@ -44,6 +47,9 @@ namespace Bsnes {
}

namespace Video {
/**
* Video Specifications - Specify video parameters
*/
typedef struct _Spec {
uint32_t *buf; /**< Buffer for raw pixel data */
void *ptr; /**< User data passed to callback */
Expand Down Expand Up @@ -81,6 +87,9 @@ namespace Bsnes {
constexpr unsigned ButtonR = (1 << 23); /**< Mouse: Right Click */
}

/**
* Input Specifications - Specify input device parameters
*/
typedef struct _Spec {
unsigned port; /**< Control Port */
unsigned device; /**< Input::Device type */
Expand Down

0 comments on commit cfdacfd

Please sign in to comment.