Why the audio is so difficult?

Try to play a simple MP3 in BB10... just get this error:

error 5 (MMR_ERROR_UNSUPPORTED_MEDIA_TYPE)

 

                        const char *ctxtname = "effect";
            const char *audioout = "audio:default";
            const char *inputtype = "track";
            char cwd[PATH_MAX];
            char inputurl[PATH_MAX];
            int audio_oid;

            mode_t mode = S_IRUSR | S_IXUSR;
            memset(cwd, FILENAME_MAX, 0);
            getcwd(cwd, PATH_MAX);
            snprintf(inputurl, PATH_MAX, "file://%s%s", cwd, "/app/native/party.mp3");
            mmr_connection_t *connection;
            mmr_context_t *ctxt;
            strm_dict_t *aoparams = NULL;

            float volume =  100.0;
            audiomixer_get_output_level(AUDIOMIXER_OUTPUT_SPEAKER, &volume);

            connection = mmr_connect( NULL );
            ctxt = mmr_context_create( connection, ctxtname, 0, mode );
            audio_oid = mmr_output_attach(ctxt, audioout, "audio");

            strm_dict_t *dictionary = strm_dict_new();
            strm_dict_t *s_volumeDictionary;
            s_volumeDictionary = strm_dict_set(dictionary, "volume", "50");
            mmr_output_parameters(ctxt, audio_oid, s_volumeDictionary);

            if (mmr_input_attach(ctxt, inputurl, inputtype) < 0 ) {
                mmrerror( ctxt, inputurl );
            }
            mmr_play(ctxt);

I tried all the examples in the docs and some on the forums

I've already finished but the audio...

 

Any help? ideas?

 

As a quick test, I replaced my .mp3 with a wav file, and it worked as well.

You might want to give a shot.  If the wav works, it might be worth trying a different mp3, it is possible that the problem is with the one you use.

Tags: BlackBerry Developers

Similar Questions

  • Why the audio is not imported?

    Hello !

    When I import a file, say a mp4, only first file import the video file without audio.

    Is there something that bad?

    Thank you for your time.

    See here:

    FAQ: Why no audio or video will not at the track where I let down?

    After the clip in the timeline, there is no audio track of the clip more

    If this isn't your problem, how you import and the container and codec files?

  • When I import my video source into my calendar, which is why the audio GET stops after about one minute while the video continues to play flawless during playback?

    For context, I import a source element of 60 fps .avi in my calendar. This is a screenshot of what it looks like when I import into the attached timeline.

    dddd.PNG

    For some reason, the audio is cut and cut without any kind of action performed on it. Once I've drag in the timeline, it appears like this. No idea why this is?

    Thanks in advance to anyone who can help you.

    Better to wait until everything is in line before you start to do something.

    May need to clean the media cache.

    Your avi looks like its in a screencapture program.

    Make sure that the codecs are compatible with the first and that she also has constant framerate.

    If this isn't the case, convert mp4 with Handbrake .

  • Why the audio quality of Apple TV 4 film is so bad?

    I have my Apple TV (4th generation) hooked up to my receiver Pioneer Elite and the audio quality is very, very bad on all HD, its horrible movies. Everything is fine with my HDMI cable, receiver, or Apple TV. The volume is so low compared to the playback of a blu - ray movie or watch anything on television. When I watch a movie to iTunes HD on my Apple TV, I have to turn up the volume so much, but it does not increase the volume as it should. The audio is so different from a blu - ray movie, seems almost alive compared to watching a movie to iTunes on my Apple TV. Its really, really frustrating. Its almost unacceptable. Whats up, the poor audio quality? In most cases I pay more money for a movie to iTunes that the blu - ray of the same film. I expect the same or better quality audio.

    Sorry it's perfectly audible here, you do not have something to get lost with your installation or your equipment.

  • Anyone know why the audio is not working and how I can fix this problem?

    I'm working on a short video for my daughter and I have a few short videos that were sent to my email.  When I download and open, the video is good but has no audio?  Help please. Ive tried everything... I could think of.

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows>

    Tips for solving common audio problems

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems>

    UTC/GMT is 11:06 on Friday, January 20, 2012

  • PE9 why is the audio track sometimes change appearance?

    In the chronology of the PE9 why the audio sometimes appears as a gray light waveform , sometimes as a solid black wave?

    I does not change the display of the timeline by clicking on the "speaker" icon and turning of a waveform in a solid black straight line.

    What I referring to here is to see the sound waveform on green background shown as a solid black waveform or waveform clear gray.

    Attached screenshot image all the clips were recorded in sequence (same settings), imported into the computer at a time and all taken in the computer file with 'get media' in a single block, so in other words, they are all taken to the same settings and none have been changed.

    Despite having made no changes to any of the clips they are displayed, as you can see to be clear gray or solid black audio signals.

    In the screen shot below the first clip has a black solid waveform, but there may be a complete random mix as to where the different styles of audio waveform are positioned, so he isn't always the first clip that is different.

    Question, in two parts, A) what is the significance of the difference in the color of the wave and B) is it possible to control everything?

    This is not a one-time event; I see often and have done with three different cameras.

    Thank you for your attention.

    Kind regards... Andy

    GWOJXM

    PE9 sound issue image.jpg

    It is more of a guess than an answer, but I did some playing with different types of file and it seems that the audio was brought in with a video clip (I tried mpg, mts and DV) shows a waveform audio of audio files (tried with mp3, m4a and wav), black all the gray show with waveform.

    Perhaps this applies to you?

    See you soon,.
    --
    Neale
    Insanity is hereditary, get you your children.

  • My hdmi cable transmits is no longer the audio with the video, how can I get audio to transmit

    Why the audio transmitted with the video, it is used to

    Hello

    Open windows control panel, open Device Manager and open display devices - note equipment listed here i.e. ATI, NVidia or Intel.

    Then connect your laptop via HDMI to your TV.  Do a right-click the speaker icon in the taskbar, and select playback devices.  Click once on the left (just to point out the entrance), the HDMI output that has the same name as your graphics card, and then click the set as default button, see if you now audio through the HDMI connection.

    Kind regards

    DP - K

  • After copying the audio from one project to the other, there is only silence?

    I work in Adobe Premiere CS4. Due to an error with one of my projects, I found myself just copy all the videos, but also audio (which has a lot of splices fadeouts/complex) to another project. When I try to play the audio in the timeline panel, however, there is just silence. The video is very good, although, in addition to things like the scale being off, that I accepted that I'll have to do it again manually. But does anyone have any ideas as to why the audio is just not playing at all? Thank you.

    Select one of the clips of silent and Park then the head top.  Perform an operation to Match Frame by pressing the M key.  That should bring back your audio files.

    -Jeff

  • I had a red line on the audio portion of my clips why? FCPX

    can someone help me pls, I had a red line on the audio portion of my clips why? FCPX

    The red line shows that you have marked these clips as "rejected."  (and blue = keywords, green = favorite, etc..)

  • I have a MacBook Pro (mid-2012) with the audio jack single. Why not recognize it when I plug a microphone inside?

    I have a MacBook Pro (mid-2012) with the audio jack single. Why not recognize it when I plug a microphone inside?

    I use a splitter cable, and have verified meter that it is properly connected.  Also the microphone that I try to use the works when connected to a separate Recorder device, so I know who works very well.

    The audio output on a 2012 port does not support the audio input.  You will need to use the USB ports for audio input.  This will require an appropriate hardware and software.

    Ciao.

  • Do not understand why "the node fpga Audio IN Terminal is 16-bit signed integer"?

    Hello

    I work with myRIO 1900 for my project of ANC.

    Audio IN of the fpga node gives its type terminal data as integer signed 16-bit. So, finally the exit on the nodes of the fpga is fluctuating between two values - 1 and 1. But I want the actual values of the audio data, I did not understand how to address this problem.

    Audio In on the side of RT gives type of terminal of data such as actual values, but I did not understand why the terminal of Audio In FPGAs is 16-bit integer. ??

    Please help me solve this problem.

    Thank you.

    If your analog range of +/-2.5 V.  32768 then--would be the equivalent of-2.5 V.  32767 would be + 2, 5V.

    If you get + /-1 V, then you should see somewhere between + / 13 107 on the analog input of the number I16.

    Basically, take the n ° I16, divide by 32767, multiply by 2.5.  You will have your analog input in volts.

    I don't know why you thing it's just rounding up to the-1 to + 1.  Something must be wrong with your code or configuration.

  • Why my "speaker" icon shows that the audio is not working?

    Why my "speaker" icon shows that the audio is not working?

    Hello

    Thanks for posting this question in the Microsoft Community. It seems that the audio does not work.

    Answering these questions that would help us provide a better solution:

    1. What is the full error message you get?

    2 have you tried to install the drivers for the sound card?

    3. What is the brand and model of the computer?

    Method 1:

    Try the methods mentioned in this link and check:

    This tutorial can help you identify and resolve its current problems in Windows, including no sound from your speakers or headphones. This tutorial does not cover sound problems related to specific programs. Sound problems can be caused by cables that are not connected properly, damaged drivers, incompatible drivers, sound settings, missing updates and problems with your sound card.

    No sound in Windows
     
     
    Also check out this link as a reference are discussed common issues with sound:
     
    Tips for solving common audio problems
     
    Method 2:
     
    Check if the Audio services and dependency are started. To do;
     
    a. Windows Audio
     
    b. Windows Audio Endpoint Builder
     
    And its dependencies are
     
    c. multimedia class Scheduler
     
    d. remote procedure call
     
    e. generator Windows Audio endpoint
     
    a. click Start, type services.msc in the search box.
    b. search for the services mentioned above and check if the services are started and the Startup type is set to Automatic.
    c. If not, right-click on the service and click Start.
     
     
    Hope this information helps. If you have any additional questions with Windows do not hesitate to answer and we will be happy to help.
  • Why make the audio for the whole sequence when you export only a small section?

    If I export only a small part of my calendar, why the first emphasizes the provision of audio for the entire timeline?

    Normally this wouldn't be a problem, except that my timeline has tons of audio on it and the window "made necessary Audio Files" may take 5-10 minutes.

    Here is the link Jim referred to as:

    Feature request/Bug Report Form

  • Why the prores files original with stereo tracks into first on the single audio track?

    Why the Prores files original with stereo tracks into first on the single audio track?

    Here are a few ways.

    Adobe Premiere Pro CC: Separate Audio channels. Larry Jordan

  • The audio track to video1 moved to audio2, why, and I can restore to audio1?

    The audio track to video1 moved to audio2, why, and I can restore to audio1?

    John

    Now, I know what you did and what happened.

    The key was when you wrote

    . I think that's all happened after I had added another audio track

    When you right-click close a numbered audio track name and select Add titles in the context menu, you make your selection

    a. Add the number of video and/or audio tracks

    b. development: before first track or after last range

    Here are the scenarios given when there are 3 audio tracks by default 3 video. If you have video related to audio in 1 Audio video 1

    To get your result

    You must have used

    Add track

    Video add 1 before the first track

    Audio add 1 before the first track

    To overcome this situation where the content of the video 1 is linked to 2 Audio content when you decide to add an audio track to the timeline

    1. right click on the items in this undesirable state, select Delete Audio and video of the pop-up menu links, pass the audio not coupled 2 Audio to Audio 1. Align the video and audio as they were originally...

    2. Select video 1 and Audio 1 at the same time, right-click anywhere in the selection and select the Audio and video connection from the drop-down.

    If you had selected instead

    Add track

    Video add 0 before first track

    Audio add 1 before the first track

    you would have gotten

    Note the arrangement that created this way.

    What are the details of what you asked to do? Explore and experiment with the video, add titles or audio track number and investment options.

    Please consider.

    Thank you.

    RTA

Maybe you are looking for

  • Recognized not only not on the download page of series

    Just replaced the hard drive and trying to find the drivers. When I entered series no site does not recognize no serial number. If I search by model number I am presented with dozens of alternatives for the same item. I don't know what components are

  • Satellite L500-1XD does not illuminate

    I have used my laptop for 2 weeks and now when I try to turn it on there is no sign of life other than the power to the front lights when plugged. It is not only a problem of screen - there is no humming noise or anything when I try to turn it on, I

  • Open an another VI VI

    Hello Do you know if it is possible to open a VI through an another front VI?

  • Area 51 R2 aftermarket coolers of liquid

    Hi all, I would like to know if a Corsair Hydro H55 will install in my area 51 R2. No problem connecting?

  • Installation of window 7

    I get my R500 with the provider.  I have Window 7 Pro installed.  When I started the computer he had XP instead.  I read the DVD supplied with the computer.  It shows "Operating System Recovery Disc Windows 7 Professional (this disc contains only the