xref: /haiku/src/kits/media/legacy/Deprecated.cpp (revision c302a243e15e640fae0f689e32cdf0c18749afee)
1aad4b937SDario Casalinuovo /*
2aad4b937SDario Casalinuovo  * Copyright 2002-2015, Haiku Inc. All Rights Reserved.
3aad4b937SDario Casalinuovo  * Distributed under the terms of the MIT License.
4aad4b937SDario Casalinuovo  */
5aad4b937SDario Casalinuovo 
6aad4b937SDario Casalinuovo 
7*ec7d3b40SDario Casalinuovo #include <MediaDefs.h>
8aad4b937SDario Casalinuovo #include <MediaRoster.h>
9aad4b937SDario Casalinuovo #include <SupportDefs.h>
10aad4b937SDario Casalinuovo 
11aad4b937SDario Casalinuovo #include "MediaDebug.h"
12aad4b937SDario Casalinuovo 
13aad4b937SDario Casalinuovo // This file contains parts of the media_kit that can be removed
14aad4b937SDario Casalinuovo // as considered useless, deprecated and/or not worth to be
15aad4b937SDario Casalinuovo // implemented.
16aad4b937SDario Casalinuovo 
171acc73c4SDario Casalinuovo // BMediaRoster
181acc73c4SDario Casalinuovo 
19aad4b937SDario Casalinuovo status_t
SetRealtimeFlags(uint32 enabled)20aad4b937SDario Casalinuovo BMediaRoster::SetRealtimeFlags(uint32 enabled)
21aad4b937SDario Casalinuovo {
22aad4b937SDario Casalinuovo 	UNIMPLEMENTED();
23aad4b937SDario Casalinuovo 	return B_ERROR;
24aad4b937SDario Casalinuovo }
25aad4b937SDario Casalinuovo 
26aad4b937SDario Casalinuovo 
27aad4b937SDario Casalinuovo status_t
GetRealtimeFlags(uint32 * _enabled)28aad4b937SDario Casalinuovo BMediaRoster::GetRealtimeFlags(uint32* _enabled)
29aad4b937SDario Casalinuovo {
30aad4b937SDario Casalinuovo 	UNIMPLEMENTED();
31aad4b937SDario Casalinuovo 	return B_ERROR;
32aad4b937SDario Casalinuovo }
33aad4b937SDario Casalinuovo 
34aad4b937SDario Casalinuovo 
35aad4b937SDario Casalinuovo /*static*/ status_t
ParseCommand(BMessage & reply)36aad4b937SDario Casalinuovo BMediaRoster::ParseCommand(BMessage& reply)
37aad4b937SDario Casalinuovo {
38aad4b937SDario Casalinuovo 	UNIMPLEMENTED();
39aad4b937SDario Casalinuovo 	return B_ERROR;
40aad4b937SDario Casalinuovo }
41aad4b937SDario Casalinuovo 
42aad4b937SDario Casalinuovo 
43aad4b937SDario Casalinuovo status_t
GetDefaultInfo(media_node_id forDefault,BMessage & config)44aad4b937SDario Casalinuovo BMediaRoster::GetDefaultInfo(media_node_id forDefault, BMessage& config)
45aad4b937SDario Casalinuovo {
46aad4b937SDario Casalinuovo 	UNIMPLEMENTED();
47aad4b937SDario Casalinuovo 	return B_ERROR;
48aad4b937SDario Casalinuovo }
49aad4b937SDario Casalinuovo 
50aad4b937SDario Casalinuovo 
51aad4b937SDario Casalinuovo status_t
SetRunningDefault(media_node_id forDefault,const media_node & node)52aad4b937SDario Casalinuovo BMediaRoster::SetRunningDefault(media_node_id forDefault,
53aad4b937SDario Casalinuovo 	const media_node& node)
54aad4b937SDario Casalinuovo {
55aad4b937SDario Casalinuovo 	UNIMPLEMENTED();
56aad4b937SDario Casalinuovo 	return B_ERROR;
57aad4b937SDario Casalinuovo }
58aad4b937SDario Casalinuovo 
59aad4b937SDario Casalinuovo 
60aad4b937SDario Casalinuovo //! Deprecated call.
61aad4b937SDario Casalinuovo status_t
SetOutputBuffersFor(const media_source & output,BBufferGroup * group,bool willReclaim)62aad4b937SDario Casalinuovo BMediaRoster::SetOutputBuffersFor(const media_source& output,
63aad4b937SDario Casalinuovo 	BBufferGroup* group, bool willReclaim)
64aad4b937SDario Casalinuovo {
65aad4b937SDario Casalinuovo 	UNIMPLEMENTED();
66aad4b937SDario Casalinuovo 	debugger("BMediaRoster::SetOutputBuffersFor missing\n");
67aad4b937SDario Casalinuovo 	return B_ERROR;
68aad4b937SDario Casalinuovo }
691acc73c4SDario Casalinuovo 
701acc73c4SDario Casalinuovo // MediaDefs.h
711acc73c4SDario Casalinuovo 
72*ec7d3b40SDario Casalinuovo status_t launch_media_server(uint32 flags);
73*ec7d3b40SDario Casalinuovo 
741acc73c4SDario Casalinuovo status_t media_realtime_init_image(image_id image, uint32 flags);
751acc73c4SDario Casalinuovo 
761acc73c4SDario Casalinuovo status_t media_realtime_init_thread(thread_id thread, size_t stack_used,
771acc73c4SDario Casalinuovo 	uint32 flags);
781acc73c4SDario Casalinuovo 
791acc73c4SDario Casalinuovo 
80*ec7d3b40SDario Casalinuovo status_t
launch_media_server(uint32 flags)81*ec7d3b40SDario Casalinuovo launch_media_server(uint32 flags)
82*ec7d3b40SDario Casalinuovo {
83*ec7d3b40SDario Casalinuovo 	return launch_media_server(0, NULL, NULL, flags);
84*ec7d3b40SDario Casalinuovo }
85*ec7d3b40SDario Casalinuovo 
86*ec7d3b40SDario Casalinuovo 
871acc73c4SDario Casalinuovo //	Given an image_id, prepare that image_id for realtime media
881acc73c4SDario Casalinuovo //	If the kind of media indicated by "flags" is not enabled for real-time,
891acc73c4SDario Casalinuovo //	B_MEDIA_REALTIME_DISABLED is returned.
901acc73c4SDario Casalinuovo //	If there are not enough system resources to enable real-time performance,
911acc73c4SDario Casalinuovo //	B_MEDIA_REALTIME_UNAVAILABLE is returned.
921acc73c4SDario Casalinuovo status_t
media_realtime_init_image(image_id image,uint32 flags)931acc73c4SDario Casalinuovo media_realtime_init_image(image_id image, uint32 flags)
941acc73c4SDario Casalinuovo {
951acc73c4SDario Casalinuovo 	UNIMPLEMENTED();
961acc73c4SDario Casalinuovo 	return B_OK;
971acc73c4SDario Casalinuovo }
981acc73c4SDario Casalinuovo 
99*ec7d3b40SDario Casalinuovo 
1001acc73c4SDario Casalinuovo //	Given a thread ID, and an optional indication of what the thread is
1011acc73c4SDario Casalinuovo //	doing in "flags", prepare the thread for real-time media performance.
1021acc73c4SDario Casalinuovo //	Currently, this means locking the thread stack, up to size_used bytes,
1031acc73c4SDario Casalinuovo //	or all of it if 0 is passed. Typically, you will not be using all
1041acc73c4SDario Casalinuovo //	256 kB of the stack, so you should pass some smaller value you determine
1051acc73c4SDario Casalinuovo //	from profiling the thread; typically in the 32-64kB range.
1061acc73c4SDario Casalinuovo //	Return values are the same as for media_prepare_realtime_image().
1071acc73c4SDario Casalinuovo status_t
media_realtime_init_thread(thread_id thread,size_t stack_used,uint32 flags)1081acc73c4SDario Casalinuovo media_realtime_init_thread(thread_id thread, size_t stack_used, uint32 flags)
1091acc73c4SDario Casalinuovo {
1101acc73c4SDario Casalinuovo 	UNIMPLEMENTED();
1111acc73c4SDario Casalinuovo 	return B_OK;
1121acc73c4SDario Casalinuovo }
113