Index: device/platform/unix/audhpux.cpp
===================================================================
RCS file: /cvsroot/audio/device/platform/unix/audhpux.cpp,v
retrieving revision 1.3.42.1
diff -u -w -r1.3.42.1 audhpux.cpp
--- device/platform/unix/audhpux.cpp	9 Jul 2004 02:01:42 -0000	1.3.42.1
+++ device/platform/unix/audhpux.cpp	12 Jan 2005 22:22:58 -0000
@@ -119,6 +119,15 @@
     if ( m_nDevID < 0 )
         return RA_AOE_DEVNOTOPEN;
 
+	// set output if it's not set
+	// depending on what sound control you have, some older systems
+	// set audio to a default of no sound
+	int audio_out;
+	ioctl(m_nDevID, AUDIO_GET_OUTPUT, &audio_out);
+	if (audio_out == AUDIO_OUT_NONE) {
+		audio_out = ioctl(m_nDevID, AUDIO_SET_OUTPUT, AUDIO_OUT_INTERNAL);
+	}
+
     int nFragSize = 8192;
 
     while (-1 != ioctl(m_nDevID, AUDIO_SET_TXBUFSIZE, nFragSize))
@@ -418,7 +427,7 @@
 
 
 
-ULONG32 CAudioOutHPUX::_GetBytesActualyPlayed(void) const
+UINT64 CAudioOutHPUX::_GetBytesActualyPlayed(void) const
 {
     /* Get current playback position in device DMA. */
     int     bytes2 = 0;

Index: device/pub/platform/unix/audhpux.h
===================================================================
RCS file: /cvsroot/audio/device/pub/platform/unix/audhpux.h,v
retrieving revision 1.1.1.1.50.1
diff -u -w -r1.1.1.1.50.1 audhpux.h
--- device/pub/platform/unix/audhpux.h	9 Jul 2004 02:02:00 -0000	1.1.1.1.50.1
+++ device/pub/platform/unix/audhpux.h	12 Jan 2005 22:22:58 -0000
@@ -79,7 +79,7 @@
     virtual INT16 _Imp_GetAudioFd(void);
 
     //This ones important.
-    virtual ULONG32 _GetBytesActualyPlayed(void) const;
+    virtual UINT64 _GetBytesActualyPlayed(void) const;
 
     //Devic specific method to set the audio device characteristics. Sample rate,
     //bits-per-sample, etc.

Index: fixptutil/pub/math64.h
===================================================================
RCS file: /cvsroot/audio/fixptutil/pub/math64.h,v
retrieving revision 1.18.8.2.2.1
diff -u -w -r1.18.8.2.2.1 math64.h
--- fixptutil/pub/math64.h	17 Sep 2004 18:21:58 -0000	1.18.8.2.2.1
+++ fixptutil/pub/math64.h	12 Jan 2005 22:22:58 -0000
@@ -766,6 +766,51 @@
 #define TOCK(nsamples) 1
 #endif
 
+#if defined(_HPUX)
+#define HAVE_PLATFORM_MACROS
+static __inline int MulDiv64(int a, int b, int c)
+{
+  long long t = (long long)a * (long long)b ;
+  return (int)(t / c) ;
+}
+
+/* Compute (a * b) >> 31, using 64-bit intermediate result */
+static __inline int MulShift32(int x, int y)
+{
+	long long t = (long long)x * (long long)y ;
+    return (int)(t >> 32);
+}
+
+/* Compute (a * b) >> 31, using 64-bit intermediate result */
+static __inline int MulShift31(int x, int y)
+{
+	long long t = (long long)x * (long long)y ;
+    return (int)(t >> 31);
+}
+
+/* Compute (a * b) >> 31, using 64-bit intermediate result */
+static __inline int MulShift30(int x, int y)
+{
+	long long t = (long long)x * (long long)y ;
+    return (int)(t >> 30);
+}
+
+/* Compute (a * b) >> n, using 64-bit intermediate result */
+static __inline int MulShiftN(int x, int y, int n)
+{
+	long long t = (long long)x * (long long)y ;
+    return (int)(t >> n);
+}
+
+#define HAVE_FASTABS
+static __inline int FASTABS(int x)
+{
+    if (x >= 0)
+	return x;
+    return -x;
+}
+
+#endif
 #ifndef HAVE_FASTABS
 static __inline int FASTABS(int x) 
 {

? device/hp-uxB.pcf
Contents of new file device/hp-uxB.pcf
project.AddSources("platform/unix/audhpux.cpp")
project.AddSources("platform/unix/audUnix.cpp")
project.AddDefines("_THREADED_AUDIO")

