Error playing Mp3 sound in flashcs4, actionscript 2.0

Hi,
I'm trying to play an MP3 song in flashlite. I'm using Flash CS4, action script 2.x, flaslite 2.x versions with NOKIA 6300 as simulatore device. I followed
When i run it in simulatore it is giving me the following error:
FTPS032: A Call to GetURL(ROJA.mp3) found, limitations might apply.
FTPS029: FSCommand2 FullScreen command found.
FLERR: Bad Sound Data Error! "
and when i run on NOkia 6300 pphone, audio is not being played ...

Hi,
Install the latest version of QuickTime player on your desktop.
Adobe Flash using QuickTime plug-ins for desktop to display video.
Try it..!!!
Best Regards,
Sushil

Similar Messages

  • Please help.. error playing mp3 files in Sony Erricsson SDK 2.2.4

    i installed Sony Ericsson SDK 2.2.4 and also installed the software requirements like:
    SPOT xde Player,
    the script: WindowsXP-Windows2000-Script56-KB917344-x86-enu.exe,
    and directx 9.0
    i have jdk version 1.5.0
    but when i try to run the application named "mmademo", and select the Midlet named "Simle Player", and then select "SEMC mp3 test", it throws this exception "mediaexception: start ".
    if it is important the directory of this application is this: C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\apps\mmademo
    by the way normally the emulator of Sony Ericsson K750 supports mp3 playing on mmapi..
    it works fine when i select some other applications like "Simple Ring Tone" playing..
    And when i quit the emulator, console screen displays this(even if i run the applications that work correctly):
    Execution completed.
    0 bytecodes executed
    0 thread switches
    801 classes in the system (including system classes)
    0 dynamic objects allocated (0 bytes)
    0 garbage collections (0 bytes collected)
    please give some idea.. its too important to me

    it is the example code of the Sony Ericsson SDK, i did not write it, plus it works on my desktop computer but i need it to work on my notebook.. it gives the that result(which i explained above) on my notebook computer.. and i cant understand why would a SDK malfunctions (at playing mp3) on my notbook, and runs ok on my desktop, though my desktop is too much older and slower..
    can that have something to do with my language properties? because in order to use netbeans i switched the language to english(usa), which was not the original language of my operating system.. i installed the Sony Ericsson SDK after switching to english(usa).
    thanx..

  • I have a MAC running Maverick. MP3 sounds will not play in Safari or FireFox, but will play if you download the file locally to the Desktop. How to resolve this?

    I have a MAC running Maverick. MP3 sounds will not play in Safari or FireFox, but will play if you download the file locally to the Desktop. How to resolve this?

    You probably have an internet plugin installed that is preventing the MP3s from playing. I just checked a site with an MP3, and it played, rather than downloaded.
    The internet plugin folders are at:
    /Library/Internet Plug-ins and
    ~/Library/Internet Plug-ins
    (~/Library is hidden by default. Let me know if you don't know how to access it.)
    My internet plugins were all in /Library; there were none in ~/Library.
    Try moving these folders to the desktop (don't delete them), restarting, and then seeing if the MP3s play.
    They it will be trial and error to see which plugin is responsible.

  • I got an error message when ever I play mp3/3gp format files.

    When I ever play mp3 or 3gp file format in my curve 8520 it always show (Unable to play content). When I restarts my phone when it opens, an error message pop out saying : <Uncaught exception:- A browser content provider for video/3gpp. MIME type has already been registered with the browser.> Pls tell me how to cope out this problem. I hve tried many reset's but it dosen't work. Pls reply me asap. Thanx.

    Hi asadbaig1993
    I would suggest performing a backup of your BlackBerry smartphone then reloading the software as shown in the article below:
    KB11320 - How to perform a clean reload of the BlackBerry Device Software using BlackBerry Desktop M...
    Thanks
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Image - onClick, i'd like an .mp3 sound effect to play

    Hello
    I'm using CS4 Dreamweaver.  It would seem having a sound play when clicking on an image should be not too difficult, but I must confess I'm quite confused.   I have an image, I have a short .mp3 file..  how can i make this sound play onClick, as the image should also take the viewer to a new page?
    I notice that I can use a behavior that is "deprecated" so I am guessing there is a better way?
    Thank You

    I have followed the instructions on the first link.  This seems to work.  I still need to also have the sound play and the image link to a new page.  As soon as I fill in the href=" ", it goes to the new page, but then doesn't play the sound.  Can I do both somehow?
    current code
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <script language="javascript" type="text/javascript">
    function playSound(soundfile) {
    document.getElementById("dummy").innerHTML=
    "<embed src=\""+soundfile+"\" hidden=\"true\" autostart=\"true\" loop=\"false\" />";
    </script>
    <body>
    <span id="dummy"></span>
    <a href="#" ><img src="book.jpg" width="416" height="288" border="0"onclick="playSound('Sound5.mp3');" /></a>
    </body>
    </html>
    Thank You!
    lsuel

  • Sound blaster live mp3 + 5.1 no longer plays mp3 fi

    Hi, I am having a problem with playing mp3 files with my sound blaster creative center player. All sound on the computer works fine. Midi files and wav files will play using the creative player but it will no longer play mp3 files. I tried re-downloading the drivers but that didnt work. When I click on a mp3 file, the creative player opens, shows the file, but you cant click on the play button. It worked fine for many years and I am not sure why it doesnt work any longer. I tried searching online for help but I can not find a solution. Any help would be much appreciated. Thanks in advance! I am useing windows 98 se. Don

    Using my amp I?ve found out that the front left and right channels and about 6 decibels louder than the centre and rears/surrounds!!!
    Surly this isn?t normal using CMSS CD stereo surround

  • How do i actionscript my flash button to play the sound while being transfered to another url?

    Hi!
    As the title says:
    How do i get my flash button to play my sound when i click on
    it while being transfered to another url?
    I did get it to work, but only when i set the script to
    "_BLANK". When i clicked the button then it played the sound and
    opened the url in a new window. I want it to be in the same window
    and still play the whole sound.
    Now i get just 1 or 2 sec then when im transfered, it stops
    playing the sound.
    I hope this explains it..... if any typo....its because im
    Swedish =)
    Thanks in advance!

    If you are jumping to another URL using the same window you
    cannot have a sound start on the press of a button and that sound
    to continue on.
    Reason
    You are removing all trace of the sound and the swf that
    contains that sound file.
    Work arounds
    1.Take a look at "frames". This way you are keeping the
    container page and opening another page inside of that page.
    2. Div's. again you are importing a page into a particular
    area yet keeping the swf, with the sound playing, in the parent
    frame.

  • Start & Stop an mp3 sound

    Yes a newbie but need help.
    I wish to be able to play a voice sound every 3 minutes.
    I have the sound in "mp3' format and need to repeat the message every 3 minutes.
    +++++++++++++++++++++++++++++++++++
    var snd:Sound = new Sound();
    snd.load(new URLRequest("stovealert3.mp3"));
    var channel:SoundChannel = new SoundChannel();
    channel = snd.play();
    ++++++++++++++++++++++
    The actionscript 3.0 I wrote makes the sound once but that's it. I have the "Loop" on but it only runs once.
    I need a Timer also but until I can get the sound goes its a mute point.
    Any help would be appreciated....

    I get the first message before I press any button in the Test move:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
    at monkey_fla::MainTimeline/frame1()
    After clicking the Play button it just displays the following:
    ArgumentError: Error #2068: Invalid sound.
    at flash.media::Sound/play()
    at monkey_fla::MainTimeline/playSoundF()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    ArgumentError: Error #2068: Invalid sound.
    at flash.media::Sound/play()
    at monkey_fla::MainTimeline/playSoundF()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    ArgumentError: Error #2068: Invalid sound.
    at flash.media::Sound/play()
    at monkey_fla::MainTimeline/playSoundF()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    ArgumentError: Error #2068: Invalid sound.
    at flash.media::Sound/play()
    at monkey_fla::MainTimeline/playSoundF()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    ArgumentError: Error #2068: Invalid sound.
    at flash.media::Sound/play()
    at monkey_fla::MainTimeline/playSoundF()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    Help!
    Thanks,

  • [SOLVED] unable to play mp3 or flac files in mpd, .dts files play fine

    I had a perfect running mpd setup before I tried to fiddle around with some dependancies to get xbmc-svn to compile without errors. I installed some AUR packages (ffmpeg-svn, x264-git, libva-sds, libvpx, libid3tag).
    After that I started to experience trouble with mpd, it start fine and says it plays audio files just fine but whenever i play a mp3 or flac file the progress bar just looks like it's playing the file but I hear no sound. Whenever I play a .dts file i hear the sound correct.
    I'm very curious to why this happends.
    I rolled back the packages mentioned above but the issue remains unsolved.
    My setup: pc is connected to receiver by hdmi cable using the latest alsa version with digital passthrough over hdmi, currently using mpd-git from AUR
    mpd -v --no-daemon shows the following:
    # mpd -v --no-daemon /etc/mpd.conf
    config: loading file /etc/mpd.conf
    listen: binding to address for 192.168.1.3
    listen: binding to socket address 192.168.1.3:6600
    path: path_set_fs_charset: fs charset is: UTF-8
    database: reading DB
    disabling the last.fm playlist plugin because account is not configured
    daemon: opening pid file
    daemon: writing pid file
    snippet from mpd.log:
    Jun 28 00:54 : client: [0] process command "playlistfind filename "Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3""
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "addid "Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3""
    Jun 28 00:54 : add to playlist: Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3
    Jun 28 00:54 : database: get song: Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "playid "7""
    Jun 28 00:54 : playlist: play 7:"Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3"
    Jun 28 00:54 : decoder_thread: clearing mixramp tags
    Jun 28 00:54 : decoder_control: mixramp_start = NULL
    Jun 28 00:54 : decoder_control: mixramp_prev_end = NULL
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "status"
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "idle"
    Jun 28 00:54 : client: [0] command returned 1
    Jun 28 00:54 : client: [0] process command "playlistid "7""
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : mad: detected LAME version 3.97 ("LAME3.97 ")
    Jun 28 00:54 : mad: LAME peak found: 0.000000
    Jun 28 00:54 : mad: LAME track gain found: -5.000000
    Jun 28 00:54 : mad: encoder delay is 576, encoder padding is 1818
    Jun 28 00:54 : decoder: audio_format=44100:24:2, seekable=true
    Jun 28 00:54 : alsa: default period_time = buffer_time/4 = 185759/4 = 46439
    Jun 28 00:54 : client: [0] process command "plchangesposid "2""
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : alsa: buffer_size=8192 period_size=2048
    Jun 28 00:54 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:32:2
    Jun 28 00:54 : output: converting from 44100:24:2
    Jun 28 00:54 : Failed to open mixer for 'My ALSA Device': no such mixer control: PCM
    mpd.conf:
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/media/media9/Muziek/"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/var/lib/mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/var/lib/mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/var/log/mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/var/run/mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/var/lib/mpd/mpdstate"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "mpd"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    #group "nogroup"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    bind_to_address "192.168.1.3"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    log_level "verbose"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # #music_directory "path_to_your_music_collection"
    auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured #music_directory "path_to_your_music_collection"
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured #music_directory "path_to_your_music_collection"
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    audio_output {
    type "alsa"
    name "My ALSA Device"
    device "hw:0,3" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "default" # optional
    ## mixer_control "Master" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a recorder output:
    #audio_output {
    # type "recorder"
    # name "My recorder"
    # encoder "vorbis" # optional, vorbis or lame
    # path "/var/lib/mpd/recorder/mpd.ogg"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"
    Whenever I run xbmc using the hdmi digital output it just plays mp3 and flac files without problems.
    Anyone any clues on how to solve this issue?
    TIA, dafart
    Since
    Last edited by dafart (2010-07-01 00:38:09)

    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Which correspondents fine with the
    device "hw:0,3"
    in my mpd.conf alsa section.
    Also sound worked fine withh this config before I started installing ffmpeg-svn and alikes
    hokasch:
    I tried changing the mixer to "Master" but that did not change much.

  • Problem with playing a sound file.

    Hi,
    I simply want to play a sound by a button click. I imported
    <AVFoundation/AVAudioPlayer.h>. The code block is here:
    In .h file:
    #import <UIKit/UIKit.h>
    #import <AVFoundation/AVAudioPlayer.h>
    @interface PlaySoundViewController : UIViewController <AVAudioPlayerDelegate>
    in .m file:
    -(IBAction)btnPlay:(id)sender
        //Get the filename of the sound file:
        NSString *path = [[NSBundle mainBundle] pathForResource:@"REC001" ofType:@"MP3"];
        AVAudioPlayer* thePlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];//error here as it will compile if I commented it (and two line after) out.
        thePlayer.delegate = self;
        [thePlayer play];   
    Everything looks fine but it failed when I tried to run it. Looks like it cannot find my sound file "REC001.MP3". I put it in folder ".../PlaySound/Resource Files/SoundFiles/REC001.MP3", and "PlaySound" is my project name. However the path returned is ".../PlaySound/REC001.MP3". I guess this is why it cannot find the object. But it didn't work even I put the sound file under "PlaySound" directly. Anyone has a solution?
    Thanks.
    Regards,
    Taizhi

    Hi Mark,
    Thanks for the reply. Based on your instruction, I checked and I can see the sound files in Build Phases. The location is ".../PlaySound/SoundFiles/REC001.MP3". I don't know why it ignores folder "Resource Files". I guess that is the way it is as I also can see other images in different folders which are shown properly in the project.
    The detailed error message is here:
    Ld "/Users/greatzhi2001/Library/Developer/Xcode/DerivedData/PlaySound-anydnuuxbpxz lqfodwbuqqjwjzcd/Build/Products/Debug-iphonesimulator/PlaySound.app/PlaySound" normal i386
        cd "/Users/greatzhi2001/Desktop/iProjects/PlaySound"
        setenv MACOSX_DEPLOYMENT_TARGET 10.6
        setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3 .sdk -L/Users/greatzhi2001/Library/Developer/Xcode/DerivedData/PlaySound-anydnuuxbpx zlqfodwbuqqjwjzcd/Build/Products/Debug-iphonesimulator -F/Users/greatzhi2001/Library/Developer/Xcode/DerivedData/PlaySound-anydnuuxbpx zlqfodwbuqqjwjzcd/Build/Products/Debug-iphonesimulator "-F/Users/greatzhi2001/Desktop/iProjects/PlaySound" -filelist "/Users/greatzhi2001/Library/Developer/Xcode/DerivedData/PlaySound-anydnuuxbpxz lqfodwbuqqjwjzcd/Build/Intermediates/PlaySound.build/Debug-iphonesimulator/PlayS ound.build/Objects-normal/i386/PlaySound.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/greatzhi2001/Library/Developer/Xcode/DerivedData/PlaySound-anydnuuxbpxz lqfodwbuqqjwjzcd/Build/Products/Debug-iphonesimulator/PlaySound.app/PlaySound"
    Undefined symbols for architecture i386:
      "_OBJC_CLASS_$_AVAudioPlayer", referenced from:
          objc-class-ref in PlaySoundViewController.o
    ld: symbol(s) not found for architecture i386
    collect2: ld returned 1 exit status
    Is the framework AVFoundation I added wrong? Thanks.
    Regards,
    Taizhi

  • Play multiple sounds

    Hello!
    How can I play multiple sounds at once please?
    I tried with 2 separate soundChannel vars but they still override eachother.
    Thanks

    play both sounds through the same sound channel? eg:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                private var sound:Sound;                       
                private var soundChannel:SoundChannel;   
                private function play1():void
                    sound = new Sound();
                    sound.load(new URLRequest("sounds/1.mp3"));
                    sound.addEventListener(Event.COMPLETE, songLoaded);
                private function play2():void
                    sound = new Sound();
                    sound.load(new URLRequest("sounds/2.mp3"));
                    sound.addEventListener(Event.COMPLETE, songLoaded);
                private function songLoaded(e:Event):void
                    try
                        sound.removeEventListener(Event.COMPLETE, songLoaded);   
                        soundChannel = sound.play(0);
                    catch(err:Error)
                        trace(err)
            ]]>
        </mx:Script>
        <mx:Button x="140" y="313" label="Play sound 1" click="play1()"/>
        <mx:Button x="229" y="326" label="Play sound 2" click="play2()"/>
    </mx:Application>

  • Still having problems playing MP3s on Mac OS 10.5

    Hi everyone,
    I was never able to solve this issue, and moved on to other things, but I'm stumbling over it again. I believe that I have everything set up properly; I put the jmf and mp3 plugin jars in my /Library/Java/Extensions folder, but I am getting this message when I try running java com.sun.media.codec.audio.mp3.JavaDecoder:
    java.lang.reflect.InvocationTargetException
    Registered succesfully
    So does that mean it's properly registered, or is that InvocationTargetException something tats causing a problem. The JMF works fine for everything but mp3s; when I try playing an MP3 file, I get this error:
    Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 16000.0 frame rate, FrameSize=32768 bits
    Failed to realize: com.sun.media.PlaybackEngine@39b3a2
    Error: Unable to realize com.sun.media.PlaybackEngine@39b3a2
    All of the files I've tested worked fine with the JMStudio application that came with the JMF, but when I compiled JMStudio on my system, I got the same results that I describe above.
    I've installed, uninstalled, and reinstalled the JMF and the mp3 plugin a couple times now, and then have run the jmfinit binary, and then the jmfregistry binary, and then added and committed the com.sun.media.codec.audio.mp3.JavaDecoder to the Plugins->Codec menu. Again, with the results that I have described above.
    Can anyone help?

    I have had some success adding the [JMF codec|http://java.sun.com/javase/technologies/desktop/media/jmf/mp3/download.html] to the run-time classpath of the application (or applet).
    I did not 'install' any version of the JMF to this Ubuntu system, but separately downloaded the (MP3 codec) Jar and just added it to the classpath (at run-time).
    Note there are a number of MP3s that the JMF codec fails to get an input stream from. I recommend anybody attempting this, try it first with an MP3 that has been seen to work using the JMF codec. As such you might..
    a) Visit this applet(1), which tries to load/play an MP3. And if that works OK on your Mac., then go to..
    b) Visit the [sound section of my media page|http://pscode.org/media/#sound] and download the 'Dead End' MP3 for your own local testing.
    (1) The applet Jars are digitally signed. You can safely refuse the digitally signed code and the applet should still work. The applet is still experimental - if you have any problems with it, I would appreciate hearing them. Part a) is effectively an 'acid test' on whether my attempts to play MP3s in applets for Mac users (and other visitors) is successful. If it fails, it might indicate a difference in the way Macs implement the SPI.

  • [solved] I can't play MP3 files in JuK

    Hi
    When i try play a mp3 file, with juk, the system says this:
    [zuargo@zuargo-archlinux ~]$ juk
    [zuargo@zuargo-archlinux ~]$ xine is asking to seek behind the end of the data stream
    I have installed xine-phonon and it is uses default.
    I have tried installing gstreamer phonon (with all official of the repository plugins) but I have the same problem... I can't hear anything...
    I have tried installing pulseaudio but... nothing...
    I have tried installing oss but.... nothing
    I have tried erasing the file ~.xine/catalog.cache but... nothing...
    some web pages says solved it issue installing a package called libxine-ffmep but it is not in pacman...
    really I tried many options but I can't solved this problem
    of course, I can play mp3 files in the command line (throughout mpg123) and they sound good...
    sorry for my bad english I speak spanish
    Last edited by zuargo (2009-08-25 02:20:27)

    AdrenalineJunky wrote:
    from everything i'm reading, it seems like that error message is normally associated with xine-ffmpeg being missing...
    phonon-xine depends on xine-lib which depends on ffmpeg, but its probably worth checking to make sure they are installed.
    I have installed xine-lib
    Rasi wrote:Since there doesnt seem to be an obvious solution, simply use the gstreamer backend.
    I have used the gstreamer backend and it not works... I can't hear the mp3 files...
    another idea?

  • Game pauses upon playing a sound

    I have a class in my flash project called "Resource" which I have designated to contain all the external files outside the flash documnent. When I play a sonud from this class, it seems that my program pauses until the sound is fully loaded, and then every time it plays after that it doesn't lag at all. Would there be a way to load the sound at a different time, i.e. at the beginning of the program, rather than on the fly? Here is the code for Resource.as and how I play the sound.
    Class "Resource" (I cut out unimportant stuff)
    [code]
    package  {
        public final class Resource
            [Embed (source="/Resources/Sound.mp3" )]
            public static const Sound:Class;
            public function Resource()
    [/code]
    And this is how I call the sound and play it:
    [code]
    private var soundCoin:Sound = new Sound();
    public function User() {
    soundCoin = new Resource.Sound;
    [/code]
    And, obviously, I play the sound using soundCoin.play();
    I might just not have the right setup, because I sort of improvised what I was doing. If this method is inefficient, I would love for people to give suggestions.
    Thanks

    How are you using this or even getting this to happen? My experience is that any Symbol that references a Sound where you don't check "Embed on Frame N" (where n is the default embedding frame in your Publish settings) will give the error "Not a valid sound."  Sorry, I don't have the specific error number, as I have that box checked whenever I need an embedded sound .
    The only way I can think that this could possibly happen is if your Symbol that references the Class is before the frame specified in your publish settings (or is the Main document Class). But my experience is that Classes that load before the N frame will embed everything they need on that frame regardless of settings.
    Can you provide more details on what you did? Honestly, I'd love to be able to do on purpose what you did by accident. Having sounds that don't play immediately would be a small price to pay to have more flexibility about where the definition is embedded for the project I'm working on.
    In case it wasn't clear from the above, I thought I'd restate: what you are seeing shouldn't be happening. The file should be compiled on whatever frame is the default compile frame in your swf, and should play immediately when you call play. That it doesn't says that somehow you've stumbled into an edge case.
    FWIW, I find that using the Embed metadata as you have with Flash Pro is extremely unreliable--often part of the sound will not get compiled into the swf, so the sound will cut off early. You will probably find yourself switching to making a swc from embedded library sounds in the end because of this problem (which is what I'm doing).
    Update:
    I just recreated the error you should be seeing with that box unchecked:
    ArgumentError: Error #2068: Invalid sound.
    at flash.media::Sound/play()
    You can do a web search for more information on this issue.

  • Cannot Play MP3 after 1.3.5

    I updated my phone to 1.3.5 yesterday and everything seemed to be working fine.  Then I noticed that my phone no longer would ring on incoming calls and many other sounds were missing.  I go into the Sounds & Ringtones settings and none of the ringtones play.  I then went into the Music app to see if anything would play but no luck.  I select a song and it immediately skips to the next track and so on.  All of the mp3 files show up when I connect my Pre to my computer in USB drive mode and they play just fine on my computer so the files aren't' corrupt.  I've rebooted the phone several times after the update but still no sound.  Preware is installed but I removed everything I installed with it before running the OS update and only recently reloaded a few of the patches (after my no sound discovery).
    Here are the patches I've installed with Preware just in case they may have been an influence:
    Battery Icon as Percent
    Call Duration in Call Log
    Enable Landscape PDF View
    Match State to Area Code
    Timestamps - Clean  (this is in Messaging app)
    Anyone else encounter this?  I'd rather not reset/wipe my phone if posible.  Unless there is a way to backup and restore text messages.
    Post relates to: Pre p100eww (Sprint)
    Post relates to: Pre p100eww (Sprint)
    This question was solved.
    View Solution.

    Well it looks like it is WebOS Doctor to the rescue.  After running through the steps to get my phone really really wiped it seems to be back up and running.  For anyone else who encounters this or a similar issue here are the steps I took to resolve it:
    Before wiping my phone:
    Place the phone into Dev Mode (enter upupdowndownleftrightleftrightbastart in the global search, press the Dev icon when it appears, switch it On and restart the phone).
    Connect the phone to a computer in Just Charge mode.
    Use the WebOS Quick Install tool's Receive file tool to copy /var/luna/data/dbdata/PalmDatabase.db3 off of the phone (This is where text messages, call logs, email settings, and probably other stuff is stored).
    Switch the phone into USB Drive mode.
    Copy off everything in the USB Drive.
    Run the Backup app one last time just for good measure.
    Wiping my phone:
    Go to the Device Info app and record the phones serial number.
    Go to Palm's site and download the latest WebOS Doctor here (you will need the serial number to download it).
    Shutdown the phone as if you were going to swap the battery.
    Press and hold the Volume Up button and plug in the charging cable, after a few seconds the screen should show a large USB symbol (use the AC adaptor not USB to a computer).
    Launch WebOS Doctor and go through the steps until it asks to have the phone connected.
    Now plug the phone into the computer and wait until the Next button in WebOS Doctor becomes available.
    This process took a fair amount of time on my phone but didn't not have any errors.  From what I've read, if there are any problems during this stage rerunning WebOS Doctor usually clears it up.
    When it is done you should see the initial configuration screen asking for language, Palm Profile login, etc.
    Restoring my stuff:
    Run through the Palm Profile's restore during initial setup (pretty much just give passwords again for email).
    Place the phone into Dev Mode again.
    Connect the phone to a computer in Just Charge mode.
    Use the WebOS Quick Install tool's Send file tool to send PalmDatabase.db3 to /var/luna/data/dbdata/ on the phone.
    Restart the phone.
    Connect the phone to a computer in USB Drive mode.
    Copy back any ringtones, wallpaper, music, etc.
    That's pretty much it, just random other personal preferences after that.
    After doing those steps I was pretty much back where I started only with the 1.3.5 OS version and the ability to play mp3 files again.  Hope this helps others!
    On a side note this also fixed all the problems I was having playing videos and using the YouTube app.  It never really bothered me because I don't use videos or YouTube but they never worked since I got the phone.  They would both just throw an error as soon as I attempted to play anything.
    Message Edited by Folken on 12-30-2009 04:10 PM

Maybe you are looking for