1. pygame
  2. Untitled project
  3. pygame

Commits

Lenard Lindstrom  committed 16c6c30

continuing with the r2984 'fix'

  • Participants
  • Parent commits ecd6ca0
  • Branches default

Comments (0)

Files changed (2)

File WHATSNEW

View file
 # BREAK = change breaks existing code
 # BUG    = fixed a bug that was (or could have been) crashing
 
-[SVN 2983-2984] Feb 08, 2011
+[SVN 2983-2985] Feb 08, 2011
     Merge the buffer branch back into trunk.
     1) Extend pygame.mixer.Sound() to load samples from an object with
        an array struct interface or the new buffer protocol. Exports

File src/mixer.c

View file
 #else
 const PG_sample_format_t PG_SAMPLE_LITTLE_ENDIAN = 0;
 const PG_sample_format_t PG_SAMPLE_BIG_ENDIAN = 0x20000u;
+#endif
 const PG_sample_format_t PG_SAMPLE_CHAR_SIGN = (char)0xff > 0 ? 0 : 0x10000u;
-#endif
 #define PG_SAMPLE_SIZE(sf) ((sf) & 0x0ffffu)
 #define PG_IS_SAMPLE_SIGNED(sf) ((sf) & PG_SAMPLE_SIGNED != 0)
 #define PG_IS_SAMPLE_NATIVE_ENDIAN(sf) ((sf) & PG_SAMPLE_NATIVE_ENDIAN != 0)