STRPTR name = GetFormatName(APTR handle);
#ATTRFORMAT
constant on #MUSIC
objects.
Warning! Before version 9.0 Hollywood didn't copy the string returned into a local buffer which means that the string must remain valid even after CloseStream() has been called. Thus, it is highly suggested that you use a static buffer for the string that this function returns (unless you explicitly target Hollywood 9.0 or higher).