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

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5084
  • Karma: +117/-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: 1367
  • Karma: +70/-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: 5084
  • Karma: +117/-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: 223
  • Karma: +11/-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: 1352
  • Karma: +11/-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: 5084
  • Karma: +117/-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: 1352
  • Karma: +11/-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

Pete

  • Hero Member
  • *****
  • Posts: 1352
  • Karma: +11/-0
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #37 on: October 22, 2024, 06:47:44 am »
Hi Lars

The SDL package in use is SDL-1.2.15-5.oc00.pentium4.rpm (from netlabs-rel) which provides the sdl120.dll required by dosbox074_2020-11-04.wpi which seems to be the latest release.

No response to my email to Jochen


Regards

Pete

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +29/-0
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #38 on: October 22, 2024, 10:45:32 am »
Hi Lars

The SDL package in use is SDL-1.2.15-5.oc00.pentium4.rpm (from netlabs-rel) which provides the sdl120.dll required by dosbox074_2020-11-04.wpi which seems to be the latest release.

No response to my email to Jochen


Regards

Pete
@Pete: Sorry, I was sick. You got a response ;-)

To clarify: DOSBOX proper only uses SDL. The maintainers have explicitely stated, that they don't want to use newer SDL libs and stay with SDL.
I haven't looked into DOSBOX-X or other forks, yet.
« Last Edit: October 23, 2024, 03:24:53 pm by Jochen Schäfer »

Lars

  • Hero Member
  • *****
  • Posts: 1367
  • Karma: +70/-0
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #39 on: October 23, 2024, 12:45:21 pm »
Hi Lars

The SDL package in use is SDL-1.2.15-5.oc00.pentium4.rpm (from netlabs-rel) which provides the sdl120.dll required by dosbox074_2020-11-04.wpi which seems to be the latest release.

No response to my email to Jochen


Regards

Pete
@Pete: Sorry, I was sick. You got a response ;-)

To clarify: DOSBOX proper only uses SDL. The maintainers have explicitely stated, that they don't want to use newer SDL libs and stay with SDL2.
I haven't looked into DOSBOX-X or other forks, yet.

1) @Pete: I need the sources for SDL in order to fix it.
2) @Jochen: I am confused, you mean to say "they don't want to use newer SDL libs and stay with SDL." Correct ?

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +29/-0
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #40 on: October 23, 2024, 03:25:19 pm »
@Lars: It was a typo. I corrected my post.
The source code should be on BWW's Github. IIRC, the old SDL2 audio was an almost straight copy from SDL.
« Last Edit: October 23, 2024, 05:40:25 pm by Jochen Schäfer »

Lars

  • Hero Member
  • *****
  • Posts: 1367
  • Karma: +70/-0
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #41 on: October 23, 2024, 04:22:58 pm »
@Lars: It was a typo. I corrected my post.
The source code should be on BWW's Guthub. IIRC, the old SDL2 audio was an almost straight copy from SDL.

If I search for "SDL" on BWW's github, I only find "SDL2" stuff.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5084
  • Karma: +117/-1
    • View Profile
Re: Can aswitch.exe be used for always connected/attached usb speakers?
« Reply #42 on: October 23, 2024, 06:12:11 pm »
@Lars: It was a typo. I corrected my post.
The source code should be on BWW's Guthub. IIRC, the old SDL2 audio was an almost straight copy from SDL.

If I search for "SDL" on BWW's github, I only find "SDL2" stuff.

The source rpm has this, http://svn.netlabs.org/repos/ports/libsdl/trunk likely https now.