Even more interesting. on_metadata doesn't show the issue, yet map_metadata
does!
With your function, it showed metadata flowing through smooth_add as
expected.
With this function, you can see that ALL metadata is eaten by smooth_add:
map_metadata(fun(m)->
begin
print("METADATA #{m}")
m
end
,source)
Oh, I may see what is happening here... Is empty metadata ([]) thrown away
by the output? Perhaps the switch is just "masking" the metadata of the
jingle by simply emptying it, which is then usually thrown away by the
output. However, this empty metadata is still getting passed to my
map_metadata, which tries to assign a title to it.
A solution would probably be for me to just pass through any empty metadata
I receive in map_metadata. Perhaps it should be documented somewhere that
map_metadata can potentially receive empty metadata packets, which should be
passed through unaltered.
On Sat, Oct 8, 2011 at 4:39 AM, David Baelde <[email protected]>wrote:
> On Sat, Oct 8, 2011 at 11:28 AM, Sonic SNES <[email protected]> wrote:
> > The question is, why is "filename" removed from the metadata when a
> jingle
> > is played?
>
> It's not the case here. You should try to move a on_metadata around,
> to see where the metadata really disappears. Here I'm using some
> on_metadata(fun(m)->log("METADATA #{m}"),source) to log the metadata
> just after the smooth add, I see the filename twice.
>
> > And why is map_metadata called at all if the underlying stream
> > metadata shouldn't be changing at that point?
>
> This part is the expected behavior of switch: it replays the metadata
> when you get back to a stream in the middle of a track, so people know
> what's playing.
>
> Cheers,
> --
> David
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users