-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sbmix utility #13
Comments
Hi. While I can create an installable FreeDOS project for SBMIX and put it into our repositories. It is not up to me wether or not it gets included in the FreeDOS release. All such decisions are up to James Hall. On a side note, I wrote such a mixer for the Sound Blaster Pro back in the early 90's as well. As I recall, the process was rather painful. It took many days of probing the I/O ports to figure it out with numerous system freezes and reboots. My version includes a command line utility. Also, I provide a <1k program loadable/embeddable driver with the functions. I publicly released my sources for it about 7 years ago to https://github.com/shidel/DustyTP7/tree/master/SBPMIXER with the driver and an executable pre-compiled in the https://github.com/shidel/DustyTP7/tree/master/bin directory. I have know idea which would be better to include with a FreeDOS release. However, I suspect the BTTR version might be the preferred version. Mostly, because mine has not been updated in roughly 3 decades. |
Thanks for info.
Eric told me that pascal versions |
It was a long time ago... Thinking back on it... At the time, I needed to be able to adjust the volume for left/right independently in the sound card for a game I was making. When I made the Mixer, it was just for testing the driver (which can and does modify such settings). I haven't looked at the BTTR sources. But, looking at mine. Everything important to talk to the mixer chip and read/write it's settings is written using in-line assembler. So while it is technically Pascal, all that functionality can easily be ported to NASM or other assembler. |
Maybe I'll port mine to NASM and add the ability to change settings (not just view them). But, I have a lot on my plate. So, don't know when I would get to doing it. |
I supposed that could be C. :) |
Thanks for working on this. |
It's not that Pascal written programs are discouraged. But, programs written that use an open source compiler are preferred. That includes FPC. However for small DOS programs, FPC is not as efficient as Turbo Pascal. There are versions of TP freely available. But, it is not open source and therefore is not generally "preferred". |
Well. Here is a preview copy of the new NASM based mixer program. It's under 2.5k. Be sure to view the /? help screen. A couple things to note. For most volume settings, they can be provided as a single or comma separated pair. For example, /M 15 would set the MASTER volume for left and right channels to 15. However, if you want them different you can use something like /M 10,14. Also, the /R reset is performed by the mixer chip and not the program. So, not all settings get reset to default. Finally, after any changes the status screen reads settings back from the mixer and displays those (not the changes you set). SBPMIXER.zip |
Thanks! |
@mcericdos have pointed me
to this cool utility:
https://www.bttr-software.de/products/sbmix/
It would be useful for dosemu2,
but its not part of freedos yet.
I suppose @shidel is the right
person to ask, if it can be included?
The text was updated successfully, but these errors were encountered: