| version 1.4 | | version 1.5 |
|---|
| | |
| * Functions for managing the pig files. | | * Functions for managing the pig files. |
| * | | * |
| * $Log$ | | * $Log$ |
| | | * Revision 1.5 1999/12/17 02:22:18 donut |
| | | * Tim Riker's shareware sound fix |
| | | * |
| * Revision 1.4 1999/11/20 10:05:18 donut | | * Revision 1.4 1999/11/20 10:05:18 donut |
| * variable size menu patch from Jan Bobrowski. Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM). | | * variable size menu patch from Jan Bobrowski. Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM). |
| * | | * |
| | |
| ubyte * ptr; | | ubyte * ptr; |
| int i, sbytes; | | int i, sbytes; |
| #ifdef SHAREWARE | | #ifdef SHAREWARE |
| #ifdef ALLEGRO | | |
| int lastsize = 0; | | int lastsize = 0; |
| #endif | | |
| ubyte * lastbuf = NULL; | | ubyte * lastbuf = NULL; |
| #endif | | #endif |
| | | |
| | |
| #ifdef ALLEGRO | | #ifdef ALLEGRO |
| ptr += snd->len; | | ptr += snd->len; |
| sbytes += snd->len; | | sbytes += snd->len; |
| | | #else |
| | | ptr += snd->length; |
| | | sbytes += snd->length; |
| | | #endif |
| | | //Arne's decompress for shareware on all soundcards - Tim@Rikers.org |
| #ifdef SHAREWARE | | #ifdef SHAREWARE |
| if (lastsize < SoundCompressed[i]) { | | if (lastsize < SoundCompressed[i]) { |
| if (lastbuf) free(lastbuf); | | if (lastbuf) free(lastbuf); |
| | |
| cfread( lastbuf, SoundCompressed[i], 1, Piggy_fp ); | | cfread( lastbuf, SoundCompressed[i], 1, Piggy_fp ); |
| sound_decompress( lastbuf, SoundCompressed[i], snd->data ); | | sound_decompress( lastbuf, SoundCompressed[i], snd->data ); |
| #else | | #else |
| | | #ifdef ALLEGRO |
| cfread( snd->data, snd->len, 1, Piggy_fp ); | | cfread( snd->data, snd->len, 1, Piggy_fp ); |
| #endif | | |
| #else | | #else |
| ptr += snd->length; | | |
| sbytes += snd->length; | | |
| cfread( snd->data, snd->length, 1, Piggy_fp ); | | cfread( snd->data, snd->length, 1, Piggy_fp ); |
| | | #endif |
| #endif | | #endif |
| } | | } |
| } | | } |