haiku/headers/private/media
Axel Dörfler 9dec231042 Sorry for this large commit in advance; it's not really possible to divide this
into smaller parts:

media_addon_server:
* Removed (broken) use of (broken and inefficient) home-brewn Map, and List
  classes. This also fixes a crash on shutdown when used with the malloc_debug
  implementation. It's using stl::vector, and stl::map now instead.

_shared_buffer_list:
* Renamed _shared_buffer_list to SharedBufferList, and put it into the BPrivate
  namespace. Also, made a class out of it.
* Separated shared buffer list creation from cloning.
* Enlarged maximum number of buffers to something that is not that evil, but
  actually uses the space it has (ie. is a useful multiple of
  shared_buffer_info that fills a multiple of B_PAGE_SIZE as much as possible).
* No longer drops into the debugger if the
* The list that is currently used is very inefficient for the features it
  provides though (no change there).

_buffer_id_cache:
* Renamed to BufferCache, and put it into the private namespace
* It now deletes its buffers on deletion; since the BBufferConsumer will be
  gone, too, at this point, there is little chance that there are still buffers
  in use.
* Also, it's now using std::map instead of the (see above) Map class.

BBuffer:
* Got rid of the fBufferID member.

Misc.:
* Got rid of the global "team" variable; the media kit is now using the
  private app kit's current_team() now.
* Added a lot of missing error checks (mostly memory allocations).
* Renamed fields like "flavorid" to flavor_id, renamed "dfi_*" fields to
  something more detailed.
* Moved ServerInterface.h from src/servers/media/ to headers/private/media.
* Notifications.h was not self contained.
* Added missing licenses.
* Lots of cleanups, and coding style fixes.

What this doesn't fix:
* Bug #4954 which started all this (this comes next, though)
* Deinitialization is broken, as the PortPool is uninitialized too early, and
  still used afterwards.
* The strange add-on monitoring code in the media_addon_server


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-05 11:11:28 +00:00
..
experimental Thou shalt not use spaces in file names. 2007-08-29 23:49:02 +00:00
audio_module.h
DataExchange.h Sorry for this large commit in advance; it's not really possible to divide this 2009-12-05 11:11:28 +00:00
debug.h * Implemented ERROR as fprintf(stderr, ...) with tracing turned off as well. 2008-03-19 19:39:07 +00:00
DecoderPlugin.h Small style cleanup. 2009-07-29 16:24:00 +00:00
DefaultMediaTheme.h Some cleanup. 2007-10-15 14:09:14 +00:00
DormantNodeManager.h
EncoderPlugin.h Encoder: 2009-08-05 10:21:36 +00:00
hmulti_audio.h added Headphones and SPDIF string constants 2008-11-17 19:44:36 +00:00
MediaDebug.h new debug header for media kit 2007-04-26 20:40:27 +00:00
MediaExtractor.h * Completely rewrote the ChunkCache - the previous version had some issues with 2009-11-25 14:24:52 +00:00
MediaMisc.h
MediaPlugin.h * Cleanup 2009-07-29 16:01:28 +00:00
MediaRosterEx.h
MediaSounds.h added default sound events 2007-04-16 19:15:46 +00:00
MediaWriter.h * Tweaked the Writer API. Basically, we need an Init() method that takes the 2009-07-31 15:29:08 +00:00
MetaFormat.h
multi_audio.h * Delete all local copies of multi_audio from source tree. 2007-05-14 02:37:14 +00:00
Notifications.h Sorry for this large commit in advance; it's not really possible to divide this 2009-12-05 11:11:28 +00:00
OldSoundDriver.h
PluginManager.h Changed the way Encoders are published by EncoderPlugins. Encoder retrieval 2009-07-30 20:05:11 +00:00
PortPool.h Sorry for this large commit in advance; it's not really possible to divide this 2009-12-05 11:11:28 +00:00
RawFormats.h
ReaderPlugin.h Resolved TODOs in PluginManager about leaking plugins when they are no longer 2009-06-07 18:11:05 +00:00
ServerInterface.h Sorry for this large commit in advance; it's not really possible to divide this 2009-12-05 11:11:28 +00:00
SharedBufferList.h Sorry for this large commit in advance; it's not really possible to divide this 2009-12-05 11:11:28 +00:00
soundcard.h Move this to media/, seems audio/ is only for old stuff. 2007-08-29 12:31:55 +00:00
TList.h Fixed Remove() operations to be O(1) again, I just didn't get it. The item 2009-06-08 07:01:58 +00:00
TMap.h Fixed Remove() operations to be O(1) again, I just didn't get it. The item 2009-06-08 07:01:58 +00:00
TStack.h
WriterPlugin.h * Also pass the media_codec_info to the Writer::AllocateCookie(), since that 2009-08-01 01:16:12 +00:00