Listening for the error event when decoding an MP3 Asset often reports bad main_data_begin pointer or Huffman data overrun errors. Contrary to the Asset class documentation, the decoding process finishes afterwards, apparently successfully. Errors of the type UnderflowError and Error: Invalid layer, however, are thrown as simple exceptions - and being thrown asynchronously, they are impossible for client code to catch. It'd be useful if they were reported through the error event, with the less fatal errors being perhaps moved to a warning event.
Listening for the
errorevent when decoding an MP3 Asset often reportsbad main_data_begin pointerorHuffman data overrunerrors. Contrary to the Asset class documentation, the decoding process finishes afterwards, apparently successfully. Errors of the typeUnderflowErrorandError: Invalid layer, however, are thrown as simple exceptions - and being thrown asynchronously, they are impossible for client code to catch. It'd be useful if they were reported through theerrorevent, with the less fatal errors being perhaps moved to awarningevent.