[linux-audio-dev] Re: gQ for Linux

Kjetil S. Matheussen k.s.matheussen at notam02.no
Thu Aug 14 06:26:01 UTC 2003


On Thu, 14 Aug 2003, Dave Phillips wrote:

> Martijn Sipkema wrote:
>
> > [...]
> > > What is 'ALport' and 'ALconfig', and where are they
> > > defined?
> >
> > Those are part of the SGI audio library and I woudn't expect them
> > to be available under Linux.
>
> Actually they are available for Linux. Richard Kent, author of the DAP
> soundfile editor, ported the SGI audio library quite some time ago. His
> work is called 'tichstuff' and is available here:
>
> 	ftp://mustec.bgsu.edu/pub/linux/tichstuff.tar.gz
>

Its better to use the standard libaudiofile (which ao. gnome uses), and
add the following definitions:

#ifdef GNOME_AUDIOFILE
/* Michael PruettAudiofilelib */
#define AFreadframes afReadFrames
#define AFwriteframes afWriteFrames
#define AFopenfile afOpenFile
#define AFgetchannels afGetChannels
#define AFgetrate afGetRate
#define AFgetcompression afGetCompression
#define AFgetfilefmt afGetFileFormat
#define AFgetsampfmt afGetSampleFormat
#define AFgetframecnt afGetFrameCount
#define AFclosefile afCloseFile
#define AFclosefile afCloseFile
#define AFseekframe afSeekFrame
#define AFclosefile afCloseFile
#define AFnewfilesetup afNewFileSetup
#define AFfreefilesetup afFreeFileSetup
#define AFinitchannels afInitChannels
#define AFinitrate afInitRate
#define AFinitcompression afInitCompression
#define AFinitfilefmt afInitFileFormat
#define AFinitsampfmt afInitSampleFormat
/* to satisfy the linker , compression not supported */
int afGetCompression (AFfilehandle fh, int track)
{
  return AF_COMPRESSION_NONE;
}
void afInitCompression (AFfilesetup afs, int track, int compression)
{
}
#endif


Then you can read wav files etc. Not just aiff.


-- 



More information about the Linux-audio-dev mailing list