Anonymous wrote:Okay, I've discovered that I can mmap a /dev/dsp_mmap if I use the 32-bit version of OSS. It does not appear to be possible to do this using the 64-bit OSS driver.
However, the same mmap OSS audio code that I use under Linux that sounds just fine with OSS/Free, is horribly choppy and latent under Solaris 10 x86 using the 32-bit driver.
Additionally, using SDL to do Audio instead of doing the sound using OSS directly myself gives a better result, but it still skips pretty bad.
The only audio option that does seem to work almost perfect (except for some minor latency) is telling SDL to use ESD for it's audio output instead of OSS.
dev wrote:Which SDL version?. If it's from Companion CD, it may have problems. You need to do the following:
1) cp /usr/lib/oss/include/sys/soundcard.h /usr/include/sys/soundcard.h
2) download SDL sources
3) ./configure; make; make install (check that OSS audio gets defined).
If you've done this and still get problems with SDL, set an environment variable: DSP_NOSELECT=1 and then run SDL apps.
As for mmap() - it's not implemented in AMD64 because hat_getkpfnum() function has been removed and we need to support the new API. Secondly we hate MMAP() - It's not
recommended as there are devices that cannot handle mmap()
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 1 guest