Subject: Re: [linux-audio-dev] bytesex
From: Erik de Castro Lopo (erikd_AT_zip.com.au)
Date: pe elo 27 1999 - 07:28:19 EDT
reactor/CTPmedia wrote:
>
> yo!
>
> what should we do about bytesex? i want my program to run on every machine
> that has linux, not just on lousy 80x86s.
This has been covered to some extent by others, but I thought I'd
add my $0.02 worth.
My little project (http://www.zip.com.au/~erikd/libsndfile)
will soon have some publically available functions named
something along the lines of :
void sf_sc2s_array (signed char *buffer, short *ptr, unsigned int count) ;
void sf_uc2s_array (unsigned char *buffer, short *ptr, unsigned int count) ;
void sf_bet2s_array (tribyte *buffer, short *ptr, unsigned int count) ;
void sf_let2s_array (tribyte *buffer, short *ptr, unsigned int count) ;
void sf_bei2s_array (int *buffer, unsigned int count, short *ptr, unsigned int count) ;
void sf_lei2s_array (int *buffer, short *ptr, unsigned int count) ;
void sf_f2s_array (float *buffer, short *ptr, unsigned int count) ;
...............
.........
....
Basically, all the bytesex and sample width conversion routines that
are useful within libsndfile will be exposed for general use. I will
also be exposing similar functions for ulaw and Alaw encoded data.
Cheers,
Erik
-- +-------------------------------------------------+ Erik de Castro Lopo erikd_AT_zip.com.au +-------------------------------------------------+ A sufficiently advanced programming error is indistinguishable from the Windows 95 Operating System.
This archive was generated by hypermail 2b28 : pe maalis 10 2000 - 07:25:53 EST