Author Topic: Can aswitch.exe be used for always connected/attached usb speakers?  (Read 4241 times)

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4997
  • Karma: +111/-1
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #30 on: October 12, 2024, 05:40:00 pm »
Hi Lars. Dosbox is an emulator, uses SDL or SDL2 for video, sound etc to emulate a DOS environment, so nothing to do with a DOS VDM.

That is really odd. I helped Jochen to implement correct default device selection and also recording capability in SDL2. And I used the SDL2 test programs and they worked ok. Maybe that did not make it into the SDL2 provided by BWW?

From SDL2 I know that it uses DART. But that should work just fine with the USB audio drivers. At least it does here.

Looking at http://hobbesarchive.com/?submit=Search&search=dosbox&stype=any&sort=type_name&dir=%2F Dosbox is using SDL. Likely a newer version would use SDL2.

Lars

  • Hero Member
  • *****
  • Posts: 1353
  • Karma: +69/-0
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #31 on: October 13, 2024, 04:19:40 pm »
Too bad. I only fixed SDL2. I cannot even find the SDL that we use.
Maybe it's time to build a version of dosbox that uses SDL2.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4997
  • Karma: +111/-1
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #32 on: October 13, 2024, 06:20:26 pm »
Too bad. I only fixed SDL2. I cannot even find the SDL that we use.
Maybe it's time to build a version of dosbox that uses SDL2.

Hmm, looking, DosBoxes last release was 5 years back, so likely no SDL2 support though I didn't find build instructions.
There are forks such as DosBox-X, https://dosbox-x.com/ which would be nice to have. Even it comes with an intree heavily modified SDL as well as support for SDL2. This one would be nice to have as it is expanded to run most DOS apps including Win9x.
There is also SDL3 now

Mentore

  • Full Member
  • ***
  • Posts: 199
  • Karma: +7/-0
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #33 on: October 14, 2024, 08:10:32 am »
Too bad. I only fixed SDL2. I cannot even find the SDL that we use.
Maybe it's time to build a version of dosbox that uses SDL2.

Hmm, looking, DosBoxes last release was 5 years back, so likely no SDL2 support though I didn't find build instructions.
There are forks such as DosBox-X, https://dosbox-x.com/ which would be nice to have. Even it comes with an intree heavily modified SDL as well as support for SDL2. This one would be nice to have as it is expanded to run most DOS apps including Win9x.
There is also SDL3 now

SDL3 would be a good add-on to our video libraries. What is really sad is the lack of OpenGL support - though I guess it is almost useless without a real accelerated video driver. But alas, an OpenGL comeback on OS/2 would allow porting many applications. I know - we are a little community.

But let me dream  8)

Mentore

Pete

  • Hero Member
  • *****
  • Posts: 1335
  • Karma: +9/-0
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #34 on: October 15, 2024, 06:21:45 am »
Hi All

I can confirm that the only sdl2 game I have installed plays sound using Lars usb audio driver packages.
I have several sdl games installed but cannot test with them as they all need snap installed to run...


Regards

Pete

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4997
  • Karma: +111/-1
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #35 on: October 15, 2024, 07:18:11 am »
Don't you just need SDDHELP.SYS installed for the SNAP dependency?

Pete

  • Hero Member
  • *****
  • Posts: 1335
  • Karma: +9/-0
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #36 on: October 15, 2024, 03:06:37 pm »
Hi Dave

I did think of that but it seems SNAP needs to be installed for the SNAP dependency as just having sddhelp.sys loading in config.sys results in:-

J:\GAMES.ECS\SDLVERSIONS\SDLINVADERS>sdlinvaders.exe

SDLInvaders Version 0.8.0

[SNAP_Initialize] : Initializing...
[SNAP_ThreadFunc] : Starting...
[SNAP_ThreadFunc] : Calling DosSetPriority!
[SNAP_ThreadFunc] : Calling WinInitialize!
[SNAP_ThreadFunc] : Calling WinCreateMsgQueue!
[SNAP_ThreadFunc] : Calling GA_loadDriver!
[SNAP_ThreadFunc] : Could not load graphics driver!
[SNAP_Initialize] : SNAP-Thread could not initialize itself!
[FSLib_Initialize] : Could not initialize SNAP!
[os2fslib_CreateDevice] : Could not initialize FSLib!
Unable to initialize SDL: No available video device

J:\GAMES.ECS\SDLVERSIONS\SDLINVADERS>


Other sdl games briefly flash what is probably the above message before closing the window containing the message.


Regards

Pete