Changeset 2541

Show
Ignore:
Timestamp:
05/25/99 23:17:43 (15 years ago)
Author:
ucacoxh
Message:

- Added raw file processing entries to table. These will not appear
in RAT file menu's and it's not particularly useful that they
do. V.small amount of code bloat.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/sndfile.c

    r2540 r2541  
    5252/* Sound file handlers */ 
    5353 
    54 #define NUM_SND_HANDLERS 2 
    5554static sndfile_handler_t snd_handlers[] = { 
    5655        {"NeXT/Sun",  
     
    7372         riff_free_state, 
    7473         riff_get_format 
     74        }, 
     75        /* RAW should go last because it'll always succeed if we open a file 
     76         * using this handler and have specified format. 
     77         */ 
     78        {"Raw", 
     79         "raw", 
     80         raw_read_hdr, 
     81         raw_read_audio, 
     82         raw_write_hdr, 
     83         raw_write_audio, 
     84         NULL, /* No post write handling required */ 
     85         raw_free_state, 
     86         raw_get_format 
    7587        } 
    7688}; 
     89 
     90#define NUM_SND_HANDLERS (int)(sizeof(snd_handlers)/sizeof(snd_handlers[0])) 
    7791 
    7892#define SND_ACTION_PLAYING    1