added support for big endian OSS devices (like Linux PowerPC)
This commit is contained in:
parent
97d4081499
commit
c9e509b4c5
|
@ -5,6 +5,7 @@ DarkIce next version:
|
||||||
o bugfix: MultiThreadedConnector::sinkThread() was private, now public
|
o bugfix: MultiThreadedConnector::sinkThread() was private, now public
|
||||||
o added fileAddDate configuration option
|
o added fileAddDate configuration option
|
||||||
thanks to Nicu Pavel <npavel@ituner.com>
|
thanks to Nicu Pavel <npavel@ituner.com>
|
||||||
|
o added support for big endian OSS devices (like Linux PowerPC)
|
||||||
|
|
||||||
20-10-2002: DarkIce 0.12 released
|
20-10-2002: DarkIce 0.12 released
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,16 @@ static const char fileid[] = "$Id$";
|
||||||
|
|
||||||
/* ============================================================= module code */
|
/* ============================================================= module code */
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Tell if source id big endian
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
bool
|
||||||
|
OssDspSource :: isBigEndian ( void ) const throw ()
|
||||||
|
{
|
||||||
|
return AFMT_S16_NE == AFMT_S16_BE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
* Initialize the object
|
* Initialize the object
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
|
@ -154,7 +164,7 @@ OssDspSource :: open ( void ) throw ( Exception )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 16:
|
case 16:
|
||||||
format = AFMT_S16_LE;
|
format = AFMT_S16_NE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -285,6 +295,9 @@ OssDspSource :: close ( void ) throw ( Exception )
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.12 2002/12/20 10:40:40 darkeye
|
||||||
|
added support for big endian OSS devices (like Linux PowerPC)
|
||||||
|
|
||||||
Revision 1.11 2002/05/28 12:35:41 darkeye
|
Revision 1.11 2002/05/28 12:35:41 darkeye
|
||||||
code cleanup: compiles under gcc-c++ 3.1, using -pedantic option
|
code cleanup: compiles under gcc-c++ 3.1, using -pedantic option
|
||||||
|
|
||||||
|
|
|
@ -176,13 +176,10 @@ class OssDspSource : public AudioSource, public virtual Reporter
|
||||||
/**
|
/**
|
||||||
* Tell if the data from this source comes in big or little endian.
|
* Tell if the data from this source comes in big or little endian.
|
||||||
*
|
*
|
||||||
* @return false
|
* @return true if the source is big endian, false otherwise
|
||||||
*/
|
*/
|
||||||
virtual inline bool
|
virtual bool
|
||||||
isBigEndian ( void ) const throw ()
|
isBigEndian ( void ) const throw ();
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open the OssDspSource.
|
* Open the OssDspSource.
|
||||||
|
@ -262,6 +259,9 @@ class OssDspSource : public AudioSource, public virtual Reporter
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.6 2002/12/20 10:40:40 darkeye
|
||||||
|
added support for big endian OSS devices (like Linux PowerPC)
|
||||||
|
|
||||||
Revision 1.5 2001/09/18 14:57:19 darkeye
|
Revision 1.5 2001/09/18 14:57:19 darkeye
|
||||||
finalized Solaris port
|
finalized Solaris port
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue