Changeset 851:06cbae08cea5 in roaraudio


Ignore:
Timestamp:
09/28/08 12:48:14 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use libsndfile for ROAR_CODEC_RIFF_WAVE if avalible, does not support vio! :(

Location:
roard
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • roard/Makefile

    r736 r851  
    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 codecfilter_alaw.o 
     5CF=codecfilter_cmd.o codecfilter_vorbis.o codecfilter_celt.o codecfilter_speex.o codecfilter_wave.o codecfilter_alaw.o codecfilter_sndfile.o 
    66 
    77include ../Makefile.conf 
     
    1111INCLUDE = -I../include -I./include 
    1212CFLAGS += -g -Wall -O2 $(DEFINES) $(INCLUDE) $(INCPATH) 
    13 LDFLAGS = -g -L../lib/ $(LDPATH) -lroar -lroardsp $(lib_esd) $(lib_ao) $(lib_vorbisfile) $(lib_vorbisenc) -lm $(lib_celt) $(lib_speex) $(lib_vorbis) 
     13LDFLAGS = -g -L../lib/ $(LDPATH) -lroar -lroardsp $(lib_esd) $(lib_ao) $(lib_vorbisfile) $(lib_vorbisenc) -lm $(lib_celt) $(lib_speex) $(lib_vorbis) $(lib_sndfile) 
    1414 
    1515all: ${TARGETS} 
  • roard/codecfilter.c

    r818 r851  
    2828 {-1,                     "null", "null codec filter", NULL, ROAR_CODECFILTER_NONE, NULL, NULL, NULL, NULL, NULL, NULL}, 
    2929 
     30#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 
    3034 {ROAR_CODEC_RIFF_WAVE, "RIFF/WAVE", "RIFF/WAVE", NULL, ROAR_CODECFILTER_READ, 
    3135  cf_wave_open, cf_wave_close, NULL, NULL, cf_wave_read, NULL}, 
     36#endif 
    3237 
    3338 {ROAR_CODEC_ALAW, "alaw", "A-Law", NULL, ROAR_CODECFILTER_READ|ROAR_CODECFILTER_WRITE, 
  • roard/include/codecfilter.h

    r783 r851  
    6969#endif 
    7070 
     71#ifdef ROAR_HAVE_LIBSNDFILE 
     72#include "codecfilter_sndfile.h" 
     73#endif 
     74 
    7175//cf alaw: 
    7276#include <libroardsp/libroardsp.h> 
Note: See TracChangeset for help on using the changeset viewer.