2 * Copyright 2002-2015, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
8 #include <MediaRoster.h>
9 #include <SupportDefs.h>
11 #include "MediaDebug.h"
13 // This file contains parts of the media_kit that can be removed
14 // as considered useless, deprecated and/or not worth to be
20 BMediaRoster::SetRealtimeFlags(uint32 enabled
)
28 BMediaRoster::GetRealtimeFlags(uint32
* _enabled
)
36 BMediaRoster::ParseCommand(BMessage
& reply
)
44 BMediaRoster::GetDefaultInfo(media_node_id forDefault
, BMessage
& config
)
52 BMediaRoster::SetRunningDefault(media_node_id forDefault
,
53 const media_node
& node
)
62 BMediaRoster::SetOutputBuffersFor(const media_source
& output
,
63 BBufferGroup
* group
, bool willReclaim
)
66 debugger("BMediaRoster::SetOutputBuffersFor missing\n");
72 status_t
launch_media_server(uint32 flags
);
74 status_t
media_realtime_init_image(image_id image
, uint32 flags
);
76 status_t
media_realtime_init_thread(thread_id thread
, size_t stack_used
,
81 launch_media_server(uint32 flags
)
83 return launch_media_server(0, NULL
, NULL
, flags
);
87 // Given an image_id, prepare that image_id for realtime media
88 // If the kind of media indicated by "flags" is not enabled for real-time,
89 // B_MEDIA_REALTIME_DISABLED is returned.
90 // If there are not enough system resources to enable real-time performance,
91 // B_MEDIA_REALTIME_UNAVAILABLE is returned.
93 media_realtime_init_image(image_id image
, uint32 flags
)
100 // Given a thread ID, and an optional indication of what the thread is
101 // doing in "flags", prepare the thread for real-time media performance.
102 // Currently, this means locking the thread stack, up to size_used bytes,
103 // or all of it if 0 is passed. Typically, you will not be using all
104 // 256 kB of the stack, so you should pass some smaller value you determine
105 // from profiling the thread; typically in the 32-64kB range.
106 // Return values are the same as for media_prepare_realtime_image().
108 media_realtime_init_thread(thread_id thread
, size_t stack_used
, uint32 flags
)