[haiku-3rdparty-dev] B_FILE_INTERFACE dormant nodes

  • From: Adrian Panasiuk <adek336@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Mon, 21 Dec 2009 17:55:42 +0100

Hi! I tried to play audio with code like in the example in the Be Book

http://pagesperso-orange.fr/cvincent/bebook/The%20Media%20Kit/MediaAddOn.html

but I came across a problem: there are only AudioAdapter, Flanger, Auich
ICH, Audio Mixer (Haiku), Demo Audio Producer, Demo Video Producer and
VideoWindow Consumer dormant nodes.

That's the result I get from

#include <Application.h>
#include <MediaRoster.h>
#include <MediaAddOn.h>

#include <iostream>

int
main()
{
     BApplication app("application/x-vnd.k");

    dormant_node_info nodes[30];
    int32 count = 30;
    if (B_OK == BMediaRoster::Roster()->
           GetDormantNodes(nodes, &count))
    {
           for (int32 i = 0; i < count; ++i)
               std::cerr << nodes[i].name << std::endl;
    }

    return 0;
}

and there's no mention of the B_FILE_INTERFACE addons, although I have such
files as /boot/system/add-ons/media-plugins/wav_reader.

Why is it this way?

Regards,
Adrian.

Other related posts: