diff --git a/headers/os/media/MediaDefs.h b/headers/os/media/MediaDefs.h index a92956ebf6..a4d9903570 100644 --- a/headers/os/media/MediaDefs.h +++ b/headers/os/media/MediaDefs.h @@ -804,25 +804,6 @@ status_t shutdown_media_server(bigtime_t timeout = B_INFINITE_TIMEOUT, 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. // These came from the old MediaDefs.h; don't use them // unless you get them from BSoundFile. diff --git a/src/kits/media/MediaDefs.cpp b/src/kits/media/MediaDefs.cpp index 2a545a8403..2c15419a8d 100644 --- a/src/kits/media/MediaDefs.cpp +++ b/src/kits/media/MediaDefs.cpp @@ -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 diff --git a/src/kits/media/legacy/Deprecated.cpp b/src/kits/media/legacy/Deprecated.cpp index ec204cb051..1f568a60e6 100644 --- a/src/kits/media/legacy/Deprecated.cpp +++ b/src/kits/media/legacy/Deprecated.cpp @@ -13,6 +13,8 @@ // as considered useless, deprecated and/or not worth to be // implemented. +// BMediaRoster + status_t BMediaRoster::SetRealtimeFlags(uint32 enabled) { @@ -63,3 +65,37 @@ BMediaRoster::SetOutputBuffersFor(const media_source& output, debugger("BMediaRoster::SetOutputBuffersFor missing\n"); 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; +}