0 Replies Latest reply on Oct 26, 2007 8:06 AM by gboudreau

    Can't embed 44kHz MP3; Flex says it's 48kHz

    gboudreau
      I got a MXML in which I'm trying to embed a MP3 (see script here).

      Flex tells me it's 48kHz:
      mxmlc wrong_sample_rate.mxml
      Loading configuration file /usr/local/bin/flex2_sdk/frameworks/flex-config.xml
      /home/bougu/work/audios/wrong_sample_rate.mxml(5): Error: unsupported sampling rate (48000Hz)

      [Embed("1700.MP3")]

      but all other applications I've tried (WMP, iTunes, mplayer) tells me it's 44kHz:

      Playing 1700.MP3.
      ID_AUDIO_ID=0
      Audio file file format detected.
      ID_FILENAME=1700.MP3
      ID_DEMUXER=audio
      ID_AUDIO_FORMAT=85
      ID_AUDIO_BITRATE=128000
      ID_AUDIO_RATE=44100
      ID_AUDIO_NCH=0
      ID_LENGTH=51.00
      ==========================================================================
      Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
      AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
      ID_AUDIO_BITRATE=128000
      ID_AUDIO_RATE=44100
      ID_AUDIO_NCH=2
      Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
      ==========================================================================
      AO: [null] 44100Hz 2ch s16le (2 bytes per sample)

      The MP3 file can be found here.

      Any idea what's wrong with this MP3, or how I could force Flex to embed it?

      Thanks,

      - Guillaume Boudreau