Author Topic: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz  (Read 4045 times)

Lars

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 28
  • Posts: 237
    • View Profile
USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« on: January 17, 2018, 07:33:10 am »
Wim and me, we have been working on updating the MMPM subsystem so that it will finally support WAV files with 24-bit and > 65535 Hz (there was a limitation in the MMPM subsystem components that would restrict the sample rate to a 16-bit value).

In fact, we updated the MMPM subsystem to support these sample rates beyond 48000 Hz:
64000, 88200,96000,176400,192000,352800,384000 Hz.

The MMPM subsystem still has an inherent limitation to only support a discrete number of sample rates but we picked the rates that are in common use today. But I think we can live with that and the supported rates can be extended if necessary (but will require an updated USBAUDIO installation, see end).

With this support you can finally use more recent USB audio devices and exploit their full capabilities.
While 16-bit, 44100 Hz stereo (CD-ROM quality) was about the best you could get in 1996, more than 20 years later this is about the minimum sample rate /bit-depth used. It will also pave the way to support USB audio 2.0 devices which normally only offer these higher sample rates.

By the way: UNIAUD would also need this MMPM subsystem update to support WAV files with sample rates higher than 48000 Hz.

Once we have everything nice and polished I will release a new version of my USB device drivers.
It will be necessary to rerun the USBAUDIO driver installation to get everything updated properly.

Lars

David McKenna

  • Full Member
  • ***
  • Thank You
  • -Given: 8
  • -Receive: 9
  • Posts: 190
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #1 on: January 17, 2018, 01:05:50 pm »
Go, Lars and Wim, go! Any chance multiple streams could be added?...

Dariusz Piatkowski

  • Sr. Member
  • ****
  • Thank You
  • -Given: 13
  • -Receive: 8
  • Posts: 451
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #2 on: January 17, 2018, 01:57:41 pm »
Lars,

This is pretty awesome stuff. Will this make for a completely separate solution from something like the AN stuff though?

Thanks,
 - Dariusz

Lars

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 28
  • Posts: 237
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #3 on: January 17, 2018, 02:13:11 pm »
Go, Lars and Wim, go! Any chance multiple streams could be added?...

In principle, yes. But I don't see the concept of multiple simultaneous streams supported in the USB audio spec. And therefore the current installation restricts it to 1 stream. But thinking about it, maybe yes, I'll have to check if there are devices that support multiple interfaces with each having the same parameters.
What DOES work is having a simultaneous input (record) and output (playback stream).

Lars

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 28
  • Posts: 237
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #4 on: January 17, 2018, 02:19:17 pm »
Lars,

This is pretty awesome stuff. Will this make for a completely separate solution from something like the AN stuff though?

Thanks,
 - Dariusz

Don't worry. You can combine my USBAUDIO.SYS with the AN driver stack and it should work just fine. The updated installation installs a new dll called USBAUDIF.DLL as a replacement for AUDIOIF.DLL alongside to the already existing AUDIOIF.DLL (in the \MMOS2\DLL dir) but it leaves AUDIOIF.DLL untouched so they don't step on each others toes.

Likewise the new installation overwrites SPI.INI (in the \MMOS2 dir) but our SPI ini update is "cumulative", which means it includes and adds on top of what is already in the default SPI.INI file.

In short: we try to keep things compatible with whatever comes with an AN installation.

Sigurd Fastenrath

  • Sr. Member
  • ****
  • Thank You
  • -Given: 14
  • -Receive: 40
  • Posts: 361
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #5 on: January 17, 2018, 03:41:07 pm »
Just to add:

This is really great stuff! I was able to use with the Driver vom Lars+Wim (older one) and this Hardware:

https://www.amazon.de/gp/product/B01N905VOY/ref=oh_aui_detailpage_o05_s00?ie=UTF8&psc=1

on my Lenovo T450s (that I already sold last week):

- headphones
- speakers

and ... YES ...

- microphone

So that I was able to use Voice Type Dictation/Navigation for OS/2 on my pimped up Warp 4.52 nativ on this T450s!

One will see this in my OS/2 Movie, that was estimated to be finished x-mas 2017, but I underestimated the needed Post Production of thís already 45 Minutes Video. But it will arrive....  8)

By the way I supported Lars by sponsoring him via bitwise, and that was something really worth it!

Thanks to Lars and Wim!

Andreas Kohl

  • Sr. Member
  • ****
  • Thank You
  • -Given: 6
  • -Receive: 12
  • Posts: 280
    • View Profile
    • warpserver.de
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #6 on: January 17, 2018, 07:34:43 pm »
In fact, we updated the MMPM subsystem to support these sample rates beyond 48000 Hz:
64000, 88200,96000,176400,192000,352800,384000 Hz.
Does it work for Playback and Recording in 8, 16 or 32 bits?

How it handles more than 2 audio channels? Is SPDIF digital I/O now possible?

Fahrvenugen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 6
  • Posts: 49
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #7 on: January 17, 2018, 09:00:31 pm »
This sounds fantastic, I can't wait to try it out.

Are the additional sample rates available to any audio adapter, or just USB?

Just wondering - I've got a couple of Warp boxes running audio logging 24x7, I'd love to be able to up the sample rate (they're using onboard audio cards supported via Uniaudio). 

I could of course switch these 2 systems over to using USB audio cards if needed.


Lars

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 28
  • Posts: 237
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #8 on: January 18, 2018, 09:00:28 am »
This sounds fantastic, I can't wait to try it out.

Are the additional sample rates available to any audio adapter, or just USB?

Just wondering - I've got a couple of Warp boxes running audio logging 24x7, I'd love to be able to up the sample rate (they're using onboard audio cards supported via Uniaudio). 

I could of course switch these 2 systems over to using USB audio cards if needed.

Currently they are only available to USBAUDIO because the USBAUDIO installation package updates the MMPM subsystem accordingly.
The problem is an outdated AUDIOIF.DLL and SPI.INI. In principle Uniaudio could also support these higher rates and BitsPerSample (of course only if the HW supports them). But for that it needs an updated AUDIOIF.DLL and SPI.INI.
In order to not interfere with other audio adapters we have decided to build a USBAUDIF.DLL which takes the place of AUDIOIF.DLL so that AUDIOIF.DLL can remain untouched.

Lars


Eugene Tucker

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 34
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #9 on: January 19, 2018, 07:19:37 pm »
I got ther recvomended USB audio adapter9Ugreen) but, I have run minstall and it stil does not work. is there anything eslse I need todo?

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 27
  • Posts: 780
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #10 on: January 19, 2018, 09:42:38 pm »
Did you unzip the two files found mmos2 in Lars' usbdrv220.zip and run minstall from the the dir you unzipped them into?

Eugene Tucker

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 34
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #11 on: January 20, 2018, 02:30:27 am »
Yes sir I did.

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 27
  • Posts: 780
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #12 on: January 20, 2018, 10:57:06 am »
Then I suspect that we will have to wait for Lars to put the latest versions up on hobbes.

BTW, I asked that question because I have found in the past that people forget to put minstall into the directory with the files they are installing.

Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 30
  • Posts: 135
    • View Profile
    • Wim's home page
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #13 on: January 20, 2018, 04:42:10 pm »
I got ther recvomended USB audio adapter9Ugreen) but, I have run minstall and it stil does not work. is there anything eslse I need todo?

After running "minstall /*" you needed to reboot your system. I assume that you have done that.
May be you did not remove the installation of an existing audio card and therefore you have right now 2 audio devices installed.
Check your "Multimedia Setup" which is in the map "System Setup" to verify that you have the "USB Adapter Wave" and the "USB Adapter MIDI" tabs available.
Make these the default devices and reboot your system.

I have always 2 audio devices installed on my systems and I do it in a different way.
After running "minstall /*" and reboot I edit MMPM2.INI and make sure that it contains the following section:

Code: [Select]
[defaultnames]
  Digitalvideo=IBMDIGVIDPLAYER01
  Ampmix=WMBAMPMIXUSB01
  Waveaudio=WMBWAVEUSB01
  Sequencer=WMBSEQUSB01

After that I reboot my system. Et voila I have usb audio working.
« Last Edit: January 20, 2018, 04:44:18 pm by Wim Brul »

Eugene Tucker

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 34
    • View Profile
Re: USBAUDIO: now supports 24-bit and sample frequencies > 65535 Hz
« Reply #14 on: January 20, 2018, 05:20:55 pm »
Thank youi I wil give editing the INI a try.