static void
swfdec_system_has_mp3 (SwfdecPlayer *player, SwfdecAsValue *ret)
{
  gboolean result = swfdec_audio_decoder_prepare (SWFDEC_AUDIO_CODEC_MP3, 
      swfdec_audio_format_new (44100, 2, TRUE), NULL);

  SWFDEC_AS_VALUE_SET_BOOLEAN (ret, result);
}
Exemplo n.º 2
0
static gboolean
check_codecs (gboolean verbose)
{
    if (!swfdec_audio_decoder_prepare (SWFDEC_AUDIO_CODEC_MP3,
                                       swfdec_audio_format_new (44100, 2, TRUE), NULL)) {
        g_print ("ERROR: MP3 support is not available.\n");
        return FALSE;
    } else if (verbose) {
        g_print ("   OK: MP3 support is available.\n");
    }
    return TRUE;
}