Skip to content

Commit

Permalink
SDL2/SDL_AudioFormat: fixed documentation from header.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 23, 2024
1 parent a406835 commit fd9deee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions SDL2/SDL_AudioFormat.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ typedef Uint16 SDL_AudioFormat;
These are what the 16 bits in [SDL_AudioFormat](SDL_AudioFormat) currently
mean... (Unspecified bits are always zero).

```
++-----------------------sample is signed if set
||
|| ++-----------sample is bigendian if set
|| ||
|| || ++---sample is float if set
|| || ||
|| || || +---sample bit size---+
|| || || | |
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
```

There are macros in SDL 2.0 and later to query these bits.


## Code Examples

```c++
Expand Down

0 comments on commit fd9deee

Please sign in to comment.