Changeset 736:44f4feb2496f in roaraudio


Ignore:
Timestamp:
09/03/08 03:37:50 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added basic alaw cf

Location:
roard
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • roard/Makefile

    r726 r736  
    33OBJ=roard.o driver.o mixer.o output.o signals.o loop.o clients.o streams.o network.o commands.o req.o sources.o sample.o meta.o codecfilter.o midi.o lib.o 
    44DRV=driver_esd.o driver_ao.o driver_roar.o driver_raw.o 
    5 CF=codecfilter_cmd.o codecfilter_vorbis.o codecfilter_celt.o codecfilter_speex.o codecfilter_wave.o 
     5CF=codecfilter_cmd.o codecfilter_vorbis.o codecfilter_celt.o codecfilter_speex.o codecfilter_wave.o codecfilter_alaw.o 
    66 
    77include ../Makefile.conf 
  • roard/codecfilter.c

    r668 r736  
    3030 {ROAR_CODEC_RIFF_WAVE, "RIFF/WAVE", "RIFF/WAVE", NULL, ROAR_CODECFILTER_READ, 
    3131  cf_wave_open, cf_wave_close, NULL, NULL, cf_wave_read, NULL}, 
     32 
     33 {ROAR_CODEC_ALAW, "alaw", "A-Law", NULL, ROAR_CODECFILTER_READ, 
     34  cf_alaw_open, cf_alaw_close, NULL, NULL, cf_alaw_read, NULL}, 
    3235 
    3336 {ROAR_CODEC_OGG_GENERAL, "cmd",  "ogg123", 
  • roard/include/codecfilter.h

    r668 r736  
    8080int codecfilter_flush(CODECFILTER_USERDATA_T   inst, int codecfilter); 
    8181 
     82// codecfilter without a own .h: 
     83int cf_alaw_open(CODECFILTER_USERDATA_T * inst, int codec, 
     84                                            struct roar_stream_server * info, 
     85                                            struct roar_codecfilter   * filter); 
     86 
     87int cf_alaw_close(CODECFILTER_USERDATA_T   inst); 
     88 
     89int cf_alaw_read(CODECFILTER_USERDATA_T   inst, char * buf, int len); 
     90int cf_alaw_write(CODECFILTER_USERDATA_T   inst, char * buf, int len); 
    8291 
    8392#endif 
Note: See TracChangeset for help on using the changeset viewer.