Commit Graph

28 Commits

Author SHA1 Message Date
kanjitalk755 d6112f4a30 Fix audio volume and mute 2022-12-12 18:17:01 +09:00
robxnano dae2be8c48 ifdefs weren't placed correctly 2022-09-07 00:03:14 +01:00
robxnano 177a297527 Fixed string building for mouse grab hotkey message 2022-09-06 23:23:33 +01:00
robxnano 481b675e1a Try to fix building on SDL 1.2 2022-09-03 14:31:30 +01:00
kanjitalk755 11e88dd94f play startup sound also when reboot 2022-06-04 16:32:57 +09:00
kanjitalk755 420dc1d504 fixed startup sound 2021-05-16 14:46:58 +09:00
kanjitalk755 8064215081 prefs item "sound_buffer" 2021-03-17 11:42:37 +09:00
kanjitalk755 e75d2ca5d6 fix for g++ 2021-02-16 15:11:49 +09:00
kanjitalk755 89e8a05815 startup sound 2021-02-06 13:06:13 +09:00
Seth Polsley 3e32a6da32 Enforce only one player at a time, pause any other 2020-07-10 17:02:04 -05:00
Seth Polsley 66a69dc79b Refactoring to handle crossplatform bincue support 2020-07-05 23:54:53 -05:00
Seth e4c34683a4 CD volume control enabled 2019-06-13 22:46:44 -05:00
Seth 2bcfae861f Switch to SDL AudioStream to convert CD Audio 2019-06-13 12:59:49 -05:00
David Ludwig 1c0e8655dc for non-OSX hosts, make GNU Autotools revert to using SDL 1.x, if SDL 2.x can't be found 2017-09-08 23:43:01 +00:00
David Ludwig 22eaa317a8 reverted to SDL 1.x compatible audio APIs (which still work in SDL2) 2017-09-04 12:13:50 -04:00
David Ludwig 1983aa1652 try making sure that the bincue sources use the correct, SDL2 audio device ID. Untested! 2017-08-27 18:11:48 -04:00
David Ludwig d5e68ceebf use SDL2's preferred/non-legacy means of opening, and working with, an audio device 2017-08-27 18:05:13 -04:00
David Ludwig 84282f4525 bug-fix: buffer-overflow in SDL2 audio code 2017-07-23 15:13:50 -04:00
David Ludwig cb982ee2ed use SDL 2.0.5+, rather than SDL 1.x
This change may end up being a bit slower on some systems, as the SDL backend will now render its content to two, new, SDL_Surfaces: one of which is in the guest OS' resolution, the other of which is application defined.

SDL2's SDL_Render API is used, which exposes some rudimentary elements of GPU + texture-based programming.  Basilisk II now maintains a single 'SDL_Texture' object, which is an SDL representation of a GPU texture.  The 'outer' surface will be used to update this texture, as requests to redraw are made.

TODO: look into removing the 'outer' SDL surface, and see if we can just copy the 'inner' surface to the SDL_Texture.
TODO: the entire SDL_Texture is updated, any time a request is made to draw.  Look into minimizing this a bit.
2017-07-22 20:29:30 -04:00
Dave Vasilevsky c2236350f4 Use constant for max volume 2015-12-27 22:42:37 -05:00
Dave Vasilevsky 4fa03d5fb1 Cleanups: Set to NULL after free, remove commented out code 2015-12-27 22:39:23 -05:00
Dave Vasilevsky 09a0525aac Enable audio volume in SDL
This is useful for keeping the volume of SS/B2 separate from that of the host machine. For example, you can mute a game in SS, while still playing music on your host.
2015-12-27 22:13:00 -05:00
asvitkine 90bdd12839 [Geoffrey Brown]
Add bin/cue support. The following should work:

1) Basilisk and SheepShaver with sdl-audio and bincue on linux and os x
2) SheepShaver with bincue and core audio on os x
2010-10-06 00:30:23 +00:00
asvitkine 6e5d8e4e85 Revert previous patch, as it was causing issues (as per basilisk-devel discussions). 2010-01-15 01:58:28 +00:00
asvitkine 1b9d155673 [patch by Mike Sliczniak]
This patch helps to keep the audio from breaking-up on slow machines when using
SDL audio. On those slow machines you do still get the break-up every so often
but the sound tends not to break-up nearly as often. It is much better on the
ears. Notably often the system beeps do not have a pause in them.
Slow machine is <= 1 GHz G4.
2009-02-19 06:42:01 +00:00
gbeauche c8cb4879a4 Happy New Year! 2008-01-01 09:40:36 +00:00
gbeauche 30632aed4f Happy New Year! 2005-01-30 21:42:16 +00:00
gbeauche eed5724b80 SDL audio support 2004-07-19 19:25:07 +00:00