Deprecate media_realtime_init_* functions
This commit is contained in:
@@ -804,25 +804,6 @@ status_t shutdown_media_server(bigtime_t timeout = B_INFINITE_TIMEOUT,
|
|||||||
void* cookie = NULL);
|
void* cookie = NULL);
|
||||||
|
|
||||||
|
|
||||||
// Given an image_id, prepare that image_id for realtime media
|
|
||||||
// If the kind of media indicated by 'flags' is not enabled for real-time,
|
|
||||||
// B_MEDIA_REALTIME_DISABLED is returned.
|
|
||||||
// If there are not enough system resources to enable real-time performance,
|
|
||||||
// B_MEDIA_REALTIME_UNAVAILABLE is returned.
|
|
||||||
status_t media_realtime_init_image(image_id image, uint32 flags);
|
|
||||||
|
|
||||||
|
|
||||||
// Given a thread ID, and an optional indication of what the thread is
|
|
||||||
// doing in "flags", prepare the thread for real-time media performance.
|
|
||||||
// Currently, this means locking the thread stack, up to size_used bytes,
|
|
||||||
// or all of it if 0 is passed. Typically, you will not be using all
|
|
||||||
// 256 kB of the stack, so you should pass some smaller value you determine
|
|
||||||
// from profiling the thread; typically in the 32-64kB range.
|
|
||||||
// Return values are the same as for media_prepare_realtime_image().
|
|
||||||
status_t media_realtime_init_thread(thread_id thread, size_t stack_used,
|
|
||||||
uint32 flags);
|
|
||||||
|
|
||||||
|
|
||||||
// A teeny bit of legacy preserved for BSoundFile from R3.
|
// A teeny bit of legacy preserved for BSoundFile from R3.
|
||||||
// These came from the old MediaDefs.h; don't use them
|
// These came from the old MediaDefs.h; don't use them
|
||||||
// unless you get them from BSoundFile.
|
// unless you get them from BSoundFile.
|
||||||
|
|||||||
@@ -1450,36 +1450,6 @@ launch_media_server(bigtime_t timeout,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark -
|
|
||||||
|
|
||||||
|
|
||||||
// Given an image_id, prepare that image_id for realtime media
|
|
||||||
// If the kind of media indicated by "flags" is not enabled for real-time,
|
|
||||||
// B_MEDIA_REALTIME_DISABLED is returned.
|
|
||||||
// If there are not enough system resources to enable real-time performance,
|
|
||||||
// B_MEDIA_REALTIME_UNAVAILABLE is returned.
|
|
||||||
status_t
|
|
||||||
media_realtime_init_image(image_id image, uint32 flags)
|
|
||||||
{
|
|
||||||
UNIMPLEMENTED();
|
|
||||||
return B_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Given a thread ID, and an optional indication of what the thread is
|
|
||||||
// doing in "flags", prepare the thread for real-time media performance.
|
|
||||||
// Currently, this means locking the thread stack, up to size_used bytes,
|
|
||||||
// or all of it if 0 is passed. Typically, you will not be using all
|
|
||||||
// 256 kB of the stack, so you should pass some smaller value you determine
|
|
||||||
// from profiling the thread; typically in the 32-64kB range.
|
|
||||||
// Return values are the same as for media_prepare_realtime_image().
|
|
||||||
status_t
|
|
||||||
media_realtime_init_thread(thread_id thread, size_t stack_used, uint32 flags)
|
|
||||||
{
|
|
||||||
UNIMPLEMENTED();
|
|
||||||
return B_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark - media_encode_info
|
// #pragma mark - media_encode_info
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
// as considered useless, deprecated and/or not worth to be
|
// as considered useless, deprecated and/or not worth to be
|
||||||
// implemented.
|
// implemented.
|
||||||
|
|
||||||
|
// BMediaRoster
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
BMediaRoster::SetRealtimeFlags(uint32 enabled)
|
BMediaRoster::SetRealtimeFlags(uint32 enabled)
|
||||||
{
|
{
|
||||||
@@ -63,3 +65,37 @@ BMediaRoster::SetOutputBuffersFor(const media_source& output,
|
|||||||
debugger("BMediaRoster::SetOutputBuffersFor missing\n");
|
debugger("BMediaRoster::SetOutputBuffersFor missing\n");
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MediaDefs.h
|
||||||
|
|
||||||
|
status_t media_realtime_init_image(image_id image, uint32 flags);
|
||||||
|
|
||||||
|
status_t media_realtime_init_thread(thread_id thread, size_t stack_used,
|
||||||
|
uint32 flags);
|
||||||
|
|
||||||
|
|
||||||
|
// Given an image_id, prepare that image_id for realtime media
|
||||||
|
// If the kind of media indicated by "flags" is not enabled for real-time,
|
||||||
|
// B_MEDIA_REALTIME_DISABLED is returned.
|
||||||
|
// If there are not enough system resources to enable real-time performance,
|
||||||
|
// B_MEDIA_REALTIME_UNAVAILABLE is returned.
|
||||||
|
status_t
|
||||||
|
media_realtime_init_image(image_id image, uint32 flags)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED();
|
||||||
|
return B_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Given a thread ID, and an optional indication of what the thread is
|
||||||
|
// doing in "flags", prepare the thread for real-time media performance.
|
||||||
|
// Currently, this means locking the thread stack, up to size_used bytes,
|
||||||
|
// or all of it if 0 is passed. Typically, you will not be using all
|
||||||
|
// 256 kB of the stack, so you should pass some smaller value you determine
|
||||||
|
// from profiling the thread; typically in the 32-64kB range.
|
||||||
|
// Return values are the same as for media_prepare_realtime_image().
|
||||||
|
status_t
|
||||||
|
media_realtime_init_thread(thread_id thread, size_t stack_used, uint32 flags)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED();
|
||||||
|
return B_OK;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user