Sound (Haiku): add stub file

This commit is contained in:
李通洲
2025-02-12 00:17:36 +08:00
parent da76dcb2fe
commit b3e7451a08
2 changed files with 24 additions and 1 deletions
+22
View File
@@ -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";
}