Dear all, one of the audio outputs SoX supports is sunaudio. Are there any SunOS (Solaris) users of SoX? (Assuming there are still users of Solaris at all.)
I have remote access to this one SunOS 5.11 box, which has no audio HW and no /dev/audio, so I have no way to tell whether sunaudio works. Below please find a micro program I use to detect the presence of SUN audio: if this compiles, runs and returns zero, you have a working sunaudio; if any of that fails, you don't. If you are running the new build system https://github.com/janstary/sox/tree/build (please test on every system you use SoX on) it is already in, https://github.com/janstary/sox/commit/d4e4f6997bd5d8803d6a245743edd538b06bfe48 https://github.com/janstary/sox/issues/17 so ./configure will run this for you: look at the sunaudio line, and if it fails, look for sunaudio in config.log If you are not running the new build system, you can compile this separately (no extra lib needed). As for sunaudio.c itself, is has last been touched in 2020 fixing a size bug, and in 2012 before that. Granted, both Solaris and Sun Microsystems were already dead by then, so perhaps nothing has changed, but please confirm explicitly whether sun audio (both the detection and the driver) works for you. Thank you Jan #include <sys/audioio.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> int main(void) { int device; audio_info_t info; if ((device = open("/dev/audio", O_RDONLY)) == -1) return 1; if (ioctl(device, AUDIO_GETINFO, &info) == -1) return 1; info.record.encoding = AUDIO_ENCODING_ULAW; info.record.sample_rate = 8000; info.record.precision = 8; info.record.channels = 1; if (ioctl(device, AUDIO_SETINFO, &info) == -1) return 1; return 0; } _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel