Replies: 17 comments 3 replies
-
|
I think it would be a nice feature to have. I don't know what to do with a problem of absence of common sound API, but somehow the problem of interface, requiring X11 on GNU/Linux, Cocoa on Mac and Windows32api on Windows was solved, so I guess it should be doable. |
Beta Was this translation helpful? Give feedback.
-
|
Sure, could be done. Requires a team of dedicated people who know all and everything about the low level sound interface at driver level on Windows, OSX and Linux/BSD.... All different of course, each with it's own problems and workarounds. Then you define a API that is totally vendor independent and makes use of the low level interface of the platform. Because right now everyone has their own API, totally different und incompatible of course. And then you can make use of this API in applications. Can all be done, certainly not by me in this life anymore. During the 90th I worked on adding the low level sound interface into UNIX systems. After all was working well the next generation of sound cards was thrown out, nothing was working anymore und you started all over again. So I know a little bit about what one is looking into for stuff like this ;-) I also used to work with the OSS guys a bit, because they supported an API that was UNIX brand independend, your application using this API would run on Linux, BSD, SCO OpenServer, SCO Unixware, Solaris. Really cool stuff, but for some reason or another gone by now. |
Beta Was this translation helpful? Give feedback.
-
|
As far as I know BSD retains OSS. According to this article https://alsa.opensrc.org/OSS_emulation Linux still supports OSS api via emulation, The reason why OSS disappeared was that OSS v4 which finally supported simultaneous sound from several applications became proprietary and was released as open source only later. Same goes with Plan9 by the way. I think that's the most likely result why those programs didn't get enough traction. |
Beta Was this translation helpful? Give feedback.
-
|
The problem with OSS was that their low level drivers were proprietary. The API to use them of course not. They gave me a free license for all drivers on any platform I wished to use, so that I was able to add sound support to applications. Search for xdoom, that is one of the applications using it. |
Beta Was this translation helpful? Give feedback.
-
|
I started converting z80pack from using X11 to SDL2. Still work in progress (sdl2 dev branch). This will make it possible to add platform independent sound support. |
Beta Was this translation helpful? Give feedback.
-
|
It would be better to add a version using SDL parallel and independent from the X11 version, I did that once with xdoom and both were useful. So software still runs on platforms without SDL but X11. I'm not sure if SDL2 is really thread save nowadays, with X11 it needed ages, didn't follow SDL development for a longer time anymore though, was the typical game half backed not properly working stuff. |
Beta Was this translation helpful? Give feedback.
-
|
I'll redo this as optional SDL support, i.e. adding |
Beta Was this translation helpful? Give feedback.
-
|
Excellent, then I still can use it sometimes on large IBM or Sun systems and see how it performs on these CPU's. One has the X11 runtime of course, but propably no one can be bothered with a SDL port. |
Beta Was this translation helpful? Give feedback.
-
|
This time SDL2 is added as an option. See (addsdl2 dev branch). Compile with |
Beta Was this translation helpful? Give feedback.
-
|
Works well now. Check it out with SDL2 on your Mac. See docs/README-osx.txt |
Beta Was this translation helpful? Give feedback.
-
|
Hmm.. Something is wrong with the native OpenGL on my MacBook 12". The Imsai 3-D model renders strange. Strange stripes on the sides. Can see switches thru the top... |
Beta Was this translation helpful? Give feedback.
-
|
Tested some on WSL/Ubunto, the 3D IMSAI model also looks the same stange. But 2D models are working fine, looks good. The latest mesa update on Ubunto again broke the 3D models, as usual, so in the long run SDL propably is a good alternative. I think you can create PR for dev upstream if you want. |
Beta Was this translation helpful? Give feedback.
-
|
Trying on MacOS but I'm missing something udo@MacBook-Pro-von-Udo z80pack % cd altairsim |
Beta Was this translation helpful? Give feedback.
-
|
So after some reading looks like one needs to do: install_name_tool -add_rpath /Library/Frameworks ./altairsim |
Beta Was this translation helpful? Give feedback.
-
|
I've haven't had any problems on my MacBook 12-inch Early 2016 with macOS 12.7.6 and Xcode 14.2 (I don't have access to any newer Mac), no messages whatsoever.... I'll look around on the web for macOS SDL2 projects and see how they do it. Under "System Preferences / Security & Privacy / Privacy" under "Developer Tools" I have "Terminal" enabled as allowed to run software that does not meet the system's security policy, and also I have "Terminal" enabled under "Full Disk Access". |
Beta Was this translation helpful? Give feedback.
-
|
I have added |
Beta Was this translation helpful? Give feedback.
-
|
I changed the OpenGL depth buffer from the SDL2 default of 16-bit to 24-bit, that made it work correctly. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
There is an open issue, that the z80pack machines won't output sound, when you toggle switches, the head of a disk drive moves, and so on. This is not really an issue, this is a feature that could be added, so I move this here to discuss and close the issue.
The machines run on a wide range of POSIX compatible workstations. The last time I looked at sound support for OSX, Linux, Windows there was no common standard, not even something to create simple tones. So this might be quite challenging, would be OK to first implement it on one OS of course.
Beta Was this translation helpful? Give feedback.
All reactions