mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
Sound (Haiku): add stub file
This commit is contained in:
+2
-1
@@ -1139,7 +1139,7 @@ elseif(Haiku)
|
||||
src/detection/poweradapter/poweradapter_nosupport.c
|
||||
src/detection/processes/processes_haiku.c
|
||||
src/detection/gtk_qt/qt.c
|
||||
src/detection/sound/sound_nosupport.c
|
||||
src/detection/sound/sound_haiku.cpp
|
||||
src/detection/swap/swap_haiku.c
|
||||
src/detection/terminalfont/terminalfont_linux.c
|
||||
src/detection/terminalshell/terminalshell_linux.c
|
||||
@@ -1616,6 +1616,7 @@ elseif(ANDROID)
|
||||
elseif(Haiku)
|
||||
target_link_libraries(libfastfetch
|
||||
PRIVATE "network"
|
||||
PRIVATE "media"
|
||||
PRIVATE "be"
|
||||
PRIVATE "gnu"
|
||||
)
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
extern "C"
|
||||
{
|
||||
#include "sound.h"
|
||||
}
|
||||
#include <MediaRoster.h>
|
||||
|
||||
const char* ffDetectSound(FF_MAYBE_UNUSED FFlist* devices /* List of FFSoundDevice */)
|
||||
{
|
||||
BMediaRoster* roster = BMediaRoster::Roster();
|
||||
media_node mediaNode;
|
||||
|
||||
roster->GetAudioOutput(&mediaNode);
|
||||
|
||||
int32_t mediaOutputCount = 0;
|
||||
roster->GetAllOutputsFor(mediaNode, NULL, 0, &mediaOutputCount);
|
||||
if (mediaOutputCount == 0)
|
||||
return NULL;
|
||||
|
||||
// TODO: Implement the rest of the function
|
||||
|
||||
return "Not supported on this platform";
|
||||
}
|
||||
Reference in New Issue
Block a user