Skip to content

Commit

Permalink
build docs in little endian mode and add note
Browse files Browse the repository at this point in the history
closes #81
  • Loading branch information
andrewrk committed Jun 13, 2016
1 parent 67746c4 commit 4eb5b4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/doxygen.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,7 @@ INCLUDE_FILE_PATTERNS =

PREDEFINED = SOUNDIO_EXTERN_C= \
SOUNDIO_EXPORT= \
__LITTLE_ENDIAN__= \

# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
Expand Down
4 changes: 4 additions & 0 deletions soundio/soundio.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ enum SoundIoFormat {

#elif defined(SOUNDIO_OS_LITTLE_ENDIAN)

/// Note that we build the documentation in Little Endian mode,
/// so all the "NE" macros in the docs point to "LE" and
/// "FE" macros point to "BE". On a Big Endian system it is the
/// other way around.
#define SoundIoFormatS16NE SoundIoFormatS16LE
#define SoundIoFormatU16NE SoundIoFormatU16LE
#define SoundIoFormatS24NE SoundIoFormatS24LE
Expand Down

0 comments on commit 4eb5b4b

Please sign in to comment.