Changeset 1012:e0923fe24fa9 in roaraudio for roard/codecfilter.c


Ignore:
Timestamp:
12/20/08 22:48:23 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for writeing wave files, ha!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/codecfilter.c

    r998 r1012  
    2828 {-1,                     "null", "null codec filter", NULL, ROAR_CODECFILTER_NONE, NULL, NULL, NULL, NULL, NULL, NULL}, 
    2929 
     30/* 
    3031#ifdef ROAR_HAVE_LIBSNDFILE 
    31  {ROAR_CODEC_RIFF_WAVE, "sndfile", "libsndfile codec filter", NULL, ROAR_CODECFILTER_READ, 
    32   cf_sndfile_open, cf_sndfile_close, NULL, NULL, cf_sndfile_read, NULL}, 
    33 #else 
     32 {ROAR_CODEC_RIFF_WAVE, "sndfile", "libsndfile codec filter", NULL, ROAR_CODECFILTER_READ|ROAR_CODECFILTER_WRITE, 
     33  cf_sndfile_open, cf_sndfile_close, NULL, cf_sndfile_write, cf_sndfile_read, NULL}, 
     34#else 
     35*/ 
    3436 {ROAR_CODEC_RIFF_WAVE, "RIFF/WAVE", "RIFF/WAVE", NULL, ROAR_CODECFILTER_READ, 
    35   cf_wave_open, cf_wave_close, NULL, NULL, cf_wave_read, NULL}, 
    36 #endif 
     37  cf_wave_open, cf_wave_close, NULL, cf_wave_write, cf_wave_read, NULL}, 
     38//#endif 
    3739 
    3840 {ROAR_CODEC_ALAW, "alaw", "A-Law", NULL, ROAR_CODECFILTER_READ|ROAR_CODECFILTER_WRITE, 
Note: See TracChangeset for help on using the changeset viewer.