Commit Graph

42 Commits

Author SHA1 Message Date
Chris Robinson d6e439244a Rename SetALCError for consistency 2009-10-07 04:32:14 -07:00
Chris Robinson e11b59a80f Return imediately if trying to set an unknown format 2009-09-21 02:53:33 -07:00
Chris Robinson fb97ca6022 Remove left-over backend-specific period options 2009-09-16 23:29:32 -07:00
Chris Robinson cbcaa54173 Store the number of periods in the device instead of the buffer size
Also keep all the fields in sync
2009-09-16 22:58:54 -07:00
Chris Robinson 94e3fca702 Remove unnecessary parameters, and rename methods 2009-09-16 00:24:44 -07:00
Chris Robinson 9f037e8980 Pass the device to aluMixData 2009-09-15 19:30:27 -07:00
Chris Robinson 6636131d3b Pass the frame count to aluMixData 2009-09-15 18:19:00 -07:00
Chris Robinson 832dc8a585 Remove unnecessary vars and rework device name checks 2009-08-27 18:55:18 -07:00
Chris Robinson bb121e68a6 Rebuild device lists when retrieving them 2009-08-27 06:09:33 -07:00
Chris Robinson 6bb14e45ce Store a copy of the device name in the device 2009-08-27 02:53:09 -07:00
Chris Robinson 45dc804819 Store copies of the device names in the individual backends 2009-08-27 01:47:41 -07:00
Chris Robinson 81db01ebf1 Add a method to deinitialize backends 2009-08-26 23:45:00 -07:00
Chris Robinson 06c576a945 Support disconnect for OSS and Solaris 2009-08-26 21:49:38 -07:00
Chris Robinson dc26261065 Support 32-bit float output 2009-08-15 13:20:35 -07:00
Chris Robinson e079291202 Remove unnecessary function parameters 2009-08-13 19:36:14 -07:00
Chris Robinson 243939f94f Allow delaying playback start until context creation, and don't use UpdateSize to store the buffer size
This will make it possible to support the context attributes (frequency,
refresh, etc) for some backends
2009-08-13 12:28:46 -07:00
Chris Robinson 93fbdb1e6c Redo OSS mixing loop 2009-05-25 12:12:37 -07:00
Chris Robinson 89ddd7d8e5 Don't modify the device struct until playback succesfully starts 2009-03-13 22:16:01 -07:00
Chris Robinson 9e9ff44b17 Use volatile for member variables that are changed in a different thread 2008-07-10 20:36:28 -07:00
Chris Robinson 8c3188bc7d Remove FrameSize struct member 2008-02-14 22:05:56 -08:00
Chris Robinson f2875d5d13 Read in chunks of the fragment size, not expected buffer size 2008-02-12 21:19:09 -08:00
Chris Robinson b0720333cc UpdateSize is not used for capture devices 2008-02-12 19:50:49 -08:00
Chris Robinson c3446a10fa Rename UpdateFreq device field to UpdateSize 2008-02-12 19:38:27 -08:00
Chris Robinson 5f1c0450b3 Remove unnecessary Channels field 2008-01-25 16:38:37 -08:00
Chris Robinson 86b7b3d54b Remove duplication of setting the max source count 2008-01-19 19:28:34 -08:00
Chris Robinson 6735fc7911 Add missing config.h includes 2008-01-16 14:09:04 -08:00
Chris Robinson aa453b4e9e Use Sleep instead of usleep 2008-01-11 14:55:35 -08:00
Chris Robinson 9c97f07ec9 Remove unneeded silence field 2008-01-07 00:26:10 -08:00
Chris Robinson 1178e900eb Don't allow 0 periods 2008-01-06 01:27:26 -08:00
Chris Robinson 8553fb9e30 ALC_REFRESH is the number of updates per second 2008-01-06 01:14:09 -08:00
Chris Robinson da3b270488 Make OSS's update size dynamic 2008-01-06 00:19:28 -08:00
Chris Robinson 7ef623c71d Fail if OSS can't set the requested bit depth and channel count 2008-01-01 06:25:00 -08:00
Chris Robinson 8011ad97b5 Don't check explicitly against formats, but rather their byte/channel count 2007-12-26 23:29:32 -08:00
Chris Robinson d14ea2965d The error code is in errno, not the return value 2007-12-16 19:45:32 -08:00
Chris Robinson e773887b4b Implement capture config option for OSS. 2007-12-16 19:37:20 -08:00
Chris Robinson 5b85067f9c Support capture for OSS 2007-12-16 19:34:52 -08:00
Chris Robinson 5f4659534a Store a persistant name string with the device struct 2007-12-14 08:51:45 -08:00
Chris Robinson fc0a7ea424 Print an error when OSS fails to open the audio device 2007-12-12 03:36:52 -08:00
Chris Robinson b4f4a46f7b Avoid void-pointer arithmetic 2007-12-06 22:29:14 -08:00
Chris Robinson 15019b3871 Allow aluMixData to accept a NULL context for silence 2007-12-05 00:29:20 -08:00
Chris Robinson ab34e7c613 Use an AL_PRINT macro for printing lib messages/errors to the console 2007-11-30 00:28:34 -08:00
Chris Robinson ae5f4e9a74 Initial import 2007-11-13 18:02:18 -08:00