• Moderator
    Kronos
    Posts: 2242 from 2003/2/24
    @Krashan

    I'm trying to open a picture with Reggae, but sofar no success ....

    I started based on playaudio:message from the SDK

    And changed/added the following:

    .
    .
    if (!(PictureOutputBase = OpenLibrary("multimedia/picture.output", 51))) return FALSE;
    .
    .
    .
    printf("1\n");

    if ((source = MediaNewObjectTags(
    MMA_StreamName, (LONG)filename,
    MMA_StreamType, (LONG)"file.stream",
    MMA_MediaType, MMT_PICTURE,
    TAG_END)))
    {printf("2\n");
    if ((player = NewObject(NULL, "picture.output", TAG_END)))
    {printf("3\n");

    if (MediaConnectTagList(source, 0, player, 0, NULL))
    {
    ULONG signals, sigmask = 1 << port->mp_SigBit;
    printf("3\n");
    .
    .
    .

    Ok it should fail horribly afterwards when it tries to play music out of an PNG, but it never gets that far ..
    Actually it nver even gets to that 2nd printf and all i get is "Reggae was unable to decode "ram:grab.png".

    Could it be that I'm missing something as I allway thought reggae would fall back to datatypes when it encounters a picture it has no decoder for ?
  • »09.08.10 - 20:12
    Profile