bio2jack

A library that allows for simple porting of general purposed bio(blocked io) OSS/ALSA audio applications to Jack.  

The sourceforge project page can be found here
.

Projects that are currently using bio2jack:

How to use bio2jack


News:

6/17/2006

11/7/2005

3/23/2005

3/13/2005

1/30/2005

11/13/2004


9/12/2004
8/18/2004
4/8/2004
2/18/2004
1/16/2004

12/27/3003

12/15/2003
12/1/2003

11/24/2003

10/26/2003 - Picked bio2jack up after letting in languish for far too long.  Tons of fixes:

1/1/2003 - CVS archive is setup.

12/31/2002 - Initial version of this webpage.  Just got the sourceforge.net project page online.  Code is almost in a presentable state ;-)


How to convert your player to output in jack using bio2jack

To convert your player you'll need to find the equivalent of these functions in whatever output system you are using.
JACK_Init() - Must be called before any other interface function
JACK_Open()
JACK_Close()
JACK_Write()
JACK_GetPosition()

For most general purpose audio applications it is a straightforward approach to map the required functions to the library.  The library takes care of buffering the written data and handling the jack callbacks.

To map OSS to bio2jack you'll want to find and replace these functions:
OSS callbio2jack call
fd = open(oss_device_name, O_RDONLY, 0)JACK_Open(&deviceID,...)
close(fd)JACK_Close(deviceID)
write(fd, buf, byteLength)JACK_Write(deviceID, buf, byteLength)
ioctl(fd, SNDCTL_DSP_GETISPACE, &tmp_info)JACK_GetPosition(deviceID, MILLISECONDS, WRITTEN)






Written by Chris Morgan<cmorgan@alum.wpi.edu>

SourceForge.net Logo