User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: [Beta] Android Audio

  1. #1
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    [Beta] Android Audio

    This extension lets you play external audio files.
    Attached files Attached files
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Update

    Updated .dat file for beta 20. Make sure to overwrite the old dat file in Data\Runtime\Android.
    Attached files Attached files
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    FYI, here's the directory of (I'm assuming all) Android phone's user interface sounds!

    "/system/media/audio/ui/"

    Woo!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Now my question is, what custom User Interface sounds are pre-installed on everyone's devices?
    For example, my phone has Effect_Tick.ogg, which I believe to be the default for all Android phones. But it also includes a custom "Touch" sound for the Samsung TouchWiz interface. This sound file is TW_Touch.ogg, and my phone defaults to this sound instead of Effect_Tick, as I imagine other companies have done with their phones' custom user interfaces.

    I bring this up because I would like my phone to play the default "Touch" sound that the user's phone uses. And if that sound effect is named different on some devices, I would like to be prepared for that. Currently, I have my application do this:

    Code:
    Start Of Frame
     - Prepare File "/system/media/audio/ui/TW_Touch.ogg"
    
    [Android Audio] On Error
    - Prepare File "/system/media/audio/ui/Effect_Tick.ogg"
    This example tries to load TW_Touch (if the user is using a Samsung Galaxy S phone), and if this file does not exist, it loads the default Effect_Tick sound file instead. I would like to be prepared for any other (or at least any of the most popular) interface sounds my app may encounter, and switch to the default Effect_Tick if none of them exist on the user's phone. I figure I can do this if I just make a long list of all known "Touch" sounds from different companies like this:

    Code:
    Start Of Frame
     - Prepare File "/system/media/audio/ui/TW_Touch.ogg"
    
    [Android Audio] On Error
    - Prepare File "/system/media/audio/ui/HTC_CustomTouchSound.ogg"
    
    [Android Audio] On Error
    - Prepare File "/system/media/audio/ui/InsertSoundFile.ogg"
    
    [Android Audio] On Error
    - Prepare File "/system/media/audio/ui/Another_Custom_UI_Sound.ogg"
    
    //default to effect_tick//
    [Android Audio] On Error
    - Prepare File "/system/media/audio/ui/Effect_Tick.ogg"
    So! What sound file does your phone use?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Suggestion: add Volume control to this extension!! More importantly, add an option to force the volume hardware buttons to control Media (or notification, ringtone, etc) volume!
    Would be very very useful!

    Also, everyone check my above post please

  6. #6
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm having trouble getting this to work.

    I've used the expression at start of frame prepare file "title.mp3"
    then Play file looped
    I get no sound
    I've also tried it with ogg

    I have include external files ticked in the options.

    Could someone post a quick how to please?

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The file must be on a server somewhere or on your sd card to work. It does not work with the Include External Files option.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  8. #8
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah right, cool.

    That explains it.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any word on possibly implementing Media/Ringer/Notification/etc volume control? (Forcing Media control when the user presses vol. up/down would be the most helpful thing you could possibly implement!!)

  10. #10
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I haven't found a way that works on all devices yet, but I am still working on finding a solution.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


Page 1 of 2 1 2 LastLast

Similar Threads

  1. REC and PLAY audio in Android
    By payopepe in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 9th September 2013, 02:54 PM
  2. [Paid Request] Extension to transfer Data as Audio for iOS/Android
    By Bipolar_Games in forum Extension Development
    Replies: 3
    Last Post: 27th October 2012, 06:13 PM
  3. [bug] Beta 32 - Weird audio problem
    By qenio in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 9th August 2012, 10:07 AM
  4. [Bugs] Android Exporter since the beta 30 (All beta testers can add to the list)
    By Koji_Kabuto in forum Android Export Module Version 2.0
    Replies: 15
    Last Post: 13th June 2012, 10:52 AM
  5. [Bug] Android Beta 30 (Android Object)
    By kiko in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 28th May 2012, 08:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •