Commit Graph
95 Commits
Author SHA1 Message Date
Glenn Maynard 7639f547f4 Disable a trace I don't need right now;
error check.
2003-07-09 20:40:28 +00:00
Steve Checkoway 1f2a99a431 fixed assertion failing.
Now GetData bails with an error of -223. I don't know what this is.
2003-07-09 17:24:47 +00:00
Steve Checkoway 9463a65974 added error checking 2003-07-09 17:23:08 +00:00
Steve Checkoway 2156e76b0b failing an assertion but getting closer 2003-07-09 08:27:27 +00:00
Steve Checkoway a98fffe856 removed useless check. 2003-07-09 07:30:48 +00:00
Steve Checkoway e8d718383e Seperate the QuickTime sound drivers into two classes.
One (working atm) class for a single Sound Manager channel.
One (not working atm) class for multiple Sound Manager channels.
2003-07-09 05:26:33 +00:00
Steve Checkoway c9579fe6b5 Not quite working but I can work out a bug or two it _should_ play back the audio much better for computers that support multitple channels (I assume that they all can!) and it should play the same for those computers that don't support it.
Right now I'm getting an error of -223 from the bufferCmd but I haven't figured out what the hell that actually is.

If you want a working sound driver for OS X, just use the previous version of these files.
2003-07-05 07:38:03 +00:00
Steve Checkoway 1d655dcb7a fix, update, etc. 2003-06-25 09:04:42 +00:00
Steve Checkoway 352a8ab860 remove LOG->Trace() 2003-06-25 05:16:19 +00:00
Steve Checkoway a94b35af95 Works correctly now. One assertion might fail when the number of samples
excedes 2^32. That should be handled more gracefully but I haven't figured
out how yet.
2003-06-24 13:23:30 +00:00
Steve Checkoway b7dc511b55 Remove'em in favor of a QuickTime driver. 2003-06-24 08:46:32 +00:00
Steve Checkoway 226c8e8e48 Use QuickTime instead of SDL audio 2003-06-24 08:44:02 +00:00
Steve Checkoway aa1e43dd63 Quick fix to make SM presentable on OS X until a better sound driver can be
written.
2003-06-21 12:18:10 +00:00
Steve Checkoway 7054e7ab7b Fix the samplerate constant. Stupid mistake. I wondered why everything played too fast. 2003-06-18 08:04:05 +00:00
Steve Checkoway 6f0fd94580 Fix the delay. 10ms instead of 10s. Fix A stupid bug where only the last sound would be played. 2003-06-14 09:13:55 +00:00
Steve Checkoway 6abd605ce8 Added preliminary sound support for OSX. As far as I know, it should work on any system with SDL. However, I have no way of checking anything other than OSX. 2003-06-14 04:18:58 +00:00
Steve Checkoway 9d3db00a96 Better encapsulation 2003-06-13 20:49:09 +00:00
William Reading 985dfb3e9d Patches submitted by Tobias Diedrich in this e-mail: https://sourceforge.net/mailarchive/forum.php\?thread_id=2533169\&forum_id=2749 2003-06-07 14:12:47 +00:00
William Reading a4489bcafc Fix missing header 2003-05-05 17:21:49 +00:00
Glenn Maynard 5997e92064 whitespace 2003-04-26 21:07:43 +00:00
Glenn Maynard 450ade0e95 Add a simple OSS driver. Needs testing. Currently asks for 48000Hz,
but we need a way to ask the sound system what the "preferred" sample
rate is.
2003-04-26 20:59:02 +00:00
Glenn Maynard ecebd53c34 reduce some memory allocs in the sound thread 2003-04-25 19:52:54 +00:00
Glenn Maynard 3612106dd4 Oops, forgot to commit subdirs ...
This also includes code to use varying sample rates with DirectSound,
so we don't have to do sample rate conversions.  Experimental.
2003-04-25 04:10:18 +00:00
Glenn Maynard edd42410c2 missing header 2003-04-23 19:38:30 +00:00
Glenn Maynard a1a17d6e64 add GetSampleRate 2003-04-23 19:30:41 +00:00
Glenn Maynard d26df0c44c Er. Had this here for a long time and it's what snapshots have been.
This seems to keep going back and forth ...
2003-04-23 19:30:12 +00:00
Aaron VonderHaar dfe8acc3a8 Finally working! Not the most optimized or robust, but at least
now playable under linux.
2003-04-15 05:56:39 +00:00
Glenn Maynard f982d75691 Fix locking.
(Oops, I guess this is a remnant of the original test code, that did use SDL audio ...)
2003-04-12 18:10:50 +00:00
Glenn Maynard c7fdf4ed9e whitespace changes only: sm uses a hard tab width of 4, not 8 2003-03-17 20:12:00 +00:00
Glenn Maynard d95c8885db fix busy looping in the null sound driver 2003-03-17 20:05:49 +00:00
Glenn Maynard e6e271f790 hopefully fix some skips in DSound (sleep calculation was giving
results higher than I intended)
2003-03-17 20:02:20 +00:00
Glenn Maynard a561c10189 fix underrun notice 2003-03-17 20:01:05 +00:00
Glenn Maynard 9b635c0015 add some asserts near where some crashdumps pointed to 2003-03-06 08:10:28 +00:00
Aaron VonderHaar 0b9448cf66 arrows now sync properly to the music (as far as I can tell) 2003-03-01 08:09:45 +00:00
Aaron VonderHaar 06b941482d replaced by ALSA9 2003-02-23 08:41:22 +00:00
Aaron VonderHaar 7c7356ed7d First sounds from linux (see followup post to devs list) 2003-02-23 08:39:29 +00:00
Tim Hentenaar 9f3fcd9b18 changed sleep() to SDL_Delay() 2003-02-20 23:36:36 +00:00
Tim Hentenaar 62ed523253 Added MixerThread() to RageSound_Linux to imitate that of RageSoundDriver_WaveOut 2003-02-20 23:21:55 +00:00
Aaron VonderHaar 3683d70c0f Make it compile and link, even though it doesn't work 2003-02-20 23:14:33 +00:00
Glenn Maynard 922e374aaa Make this compile in Windows.
Don't use nanosleep; it's nonportable.  Use SDL_Delay() instead.
2003-02-20 22:54:12 +00:00
Glenn Maynard 328f43d4dc sleep(n) sleeps for n *seconds*; you want SDL_Delay(n),
which sleeps for n milliseconds
2003-02-20 22:07:47 +00:00
Glenn Maynard 9c53564cc6 lower DS_V to 0x0700 2003-02-20 21:57:28 +00:00
Aaron VonderHaar d7a04ab91c Makes RageSoundDriver_Null pretend to play sounds 2003-02-20 15:17:06 +00:00
Chris Danford 32cdbed7bf Added detection of buggy Voodoo3 drivers, then found a hack that fixes the problems. Sigh... 2003-02-20 10:41:43 +00:00
Chris Danford 6796e39be7 backport DirectSound8 -> DirectSound. However, we're still linking with DirectSound8. Will change this later... 2003-02-20 07:17:15 +00:00
Tim Hentenaar 9b0f6baef2 misc. fixes 2003-02-19 23:53:19 +00:00
Chris Danford 6518f024e2 sound options cleanup
fix invalid sample music start and length values (Bag and more)
2003-02-19 23:49:57 +00:00
Tim Hentenaar 197c98b75b *** empty log message *** 2003-02-19 10:03:57 +00:00
Tim Hentenaar e7ae2d6284 Linux sound compiles now\! 2003-02-19 09:52:45 +00:00
Tim Hentenaar 16acb48ecd bug fixes... still having errors 2003-02-19 09:29:04 +00:00