Sound vs. NetStream: mp3 and m4A - can they both be played the same way?

I have an audio player that works just fine with mp3's.
now my client wants it to accept m4a files also.
I see that they are handled differently, using the netstream class.
But mp3's can't be handled this way.(or can they)
Is there a method that will work for both?
or do I have to program for each, and detect what file type is to be played?
Also, whatis the easiest way to get the equivilent of sound.position for a streaming m4a?

There were previous issues I've had with latency using NS to play MP3. For example my videos would sometimes become slightly desynced, especially over a long duration. This may have been resolved in the latest FPs but I tend to target the lowest version necessary.
The Sound class was designed specifically to use mp3s more efficiently as well as access information NetStream can't. If I were you I'd do a simple file extension detection and use Sound for MP3 and NetStream for M4A separately. The difference between them is a short handful of code that can easily be wrapped by a class with a similar implementation so you can re-use it.

Similar Messages

  • I have a desktop and a laptop. Can they both be under the same creative cloud membership?

    I have a desktop and a laptop. Can they both be under the same creative cloud membership?

    Yes.
    See http://www.adobe.com/products/creativecloud/faq.html#getting-started
    "Can I use the software I download from Creative Cloud on multiple computers?
    Yes, you can install and activate Creative Cloud desktop applications on two computers, regardless of operating system, for the individual associated with the Creative Cloud membership. See the product license agreements page for more information."

  • I have an Ipod4, I want an Ipad2 with 3G, do I need a new ATT contract for the IPAd, or can they both work on the same account

    I want to buy an Ipad2, but I do not want to open a new account with ATT.  Can I use the same account for the IPhone and the IPAD, will mails show on both?,

    If you get/use WiFi only you can get on the web, get mail,text,and use icloud without a new account  with ATT; but when out of Wifi coverage you would need an upgraded (ie extra $ ) data account with your phone  (ATT in your case) provider.

  • Two airport devices wired to netgear router - can they both work on the same network?

    Hi
    I have a Virgin Superhub 2 cable router. I would like to extend the wireless around the house using existing cables and have an Airport Express (v2) upstairs and an AirPort Extreme (v4) downstairs.
    Both would be connected individually to the netgear based router. When setting up the second airport device, can I asked it it extend the existing apple network I would have set up or must it be a different one. If it will extend, will it be wireless extend or wired as in both apple devices are wired to the same netgear router.
    Thanks in advance
    Matt

    See...I have a ipod nano which on being connected to itunes7, I'm able to make my own playlist&delete or download songs at my own will. But when I connect my ipod mini to my i tunes(on the same computer) ...it(only) just updates my mini but after that if i wanna make changes to the playlist on my mini or delete anything...I can't. It only works with my nano but not with my mini.

  • I have two Ipods can they both work on the same computer?

    I had bought a ipod nano about a 6 mounths ago. Last week I bought the new ipod nano 2ed gen. I was wondering if I could plug both of them into the same computer (not both at the some time)but without screwing itunes up and loosing all my music? Also would i have to change the serial numbers of the ipods on the computer?
    PLEASE HELP!!! THANK YOU!!

    See...I have a ipod nano which on being connected to itunes7, I'm able to make my own playlist&delete or download songs at my own will. But when I connect my ipod mini to my i tunes(on the same computer) ...it(only) just updates my mini but after that if i wanna make changes to the playlist on my mini or delete anything...I can't. It only works with my nano but not with my mini.

  • I just rented 2 movies on my Apple TV and now I am getting the message, "Your Apple TV is not authorized to play this content". Now I have 2 Apple TV's and they both are saying the same thing. Yes, I have done reset, restore, etc. but nothing! Frustrated

    I just rented 2 movies on my Apple TV and now I am getting the message, "Your Apple TV is not authorized to play this content". Now I have 2 Apple TV's and they both are saying the same thing. Yes, I have done reset, restore, etc. but nothing! Frustrated & out $10.
    Apple TV (3rd generation), OS X Mountain Lion (10.8.3), 2 Apple TV's (3rd Generation).

    Good call!! Thanks a million. Glad I asked & thanks for the quick response. I was getting frustrated. Thanks again!!!!!

  • I just rented 2 movies on my Apple TV and now I am getting the message, "Your Apple TV is not authorized to play this content". Now I have 2 Apple TV's and they both are saying the same thing. Yes, I have done reset, restore, etc. but nothing!

    I just rented 2 movies on my Apple TV and now I am getting the message, "Your Apple TV is not authorized to play this content". Now I have 2 Apple TV's and they both are saying the same thing. Yes, I have done reset, restore, etc. but nothing! Frustrated & out $10.

    Good call!! Thanks a million. Glad I asked & thanks for the quick response. I was getting frustrated. Thanks again!!!!!

  • I do not see where to enter IP addresses in the Open VPN setup. Also, how can I set it up so that I can choose different servers in the same way as I can currently choose them with my VPN app but for PPTP?

    I think I have it working on my iPhone 5. But, I do not see how I can control the exit point that I would like for the VPN. Are all the exit points shown in the VPN setting now going to work with Open VPN, or do they remain PPTP? If I am reading correctly, they look like they remain PPTP. If I cannot control the exit point for open VPN, which exit point is the default in the profile you provided me?I note that Open VPN Connect does not work with any of the new 64 bit devices like the iPhone 5S, the iPad Air, and the new iPad MIni. Is there any chance that you guys will come up with an update for your app so that open VPN can be made to work on all iOS devices? That would be nice, particularly if the Open VPN Connect app does not give me a choice of exit points.Thanks,
    I do not see where to enter IP addresses in the Open VPN setup. Also, how can I set it up so that I can choose different servers in the same way as I can currently choose them with my VPN app but for PPTP?
    Just a quick note to tell you that Open VPN has updated their app so that it is compatible with 64 bit ARM devices like the iPhone 5S, the iPad Air, and the iPad Mini Retina.That does not resolve the problem of how to easily choose among the various possibilities for the exit server. We need to find an easy way to choose.

    Thank you for trying the new Firefox. I'm sorry that you’re unhappy with the new design.
    I understand your frustration and surprise at the removal of these features but I can't undo these changes. I'm just a support volunteer and I do not work for Mozilla. But you can send any feedback about these changes to http://input.mozilla.org/feedback. Firefox developers collect data submitted through there then present it at the weekly Firefox meeting
    I recommend you try to adjust to 29 and see if you can't make it work for you before you downgrade to a less secure and soon outdated version of Firefox.
    Here are a few suggestions for restoring the old design. I hope you’ll find one that works for you:
    *Use the [https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ Classic Theme Restorer] to bring back the old design. Learn more here: [[How to make the new Firefox look like the old Firefox]]
    *Use the [https://addons.mozilla.org/en-US/firefox/addon/the-addon-bar/ Add-on Bar Restored] to bring back the add-on bar. Learn more here: [[What happened to the Add-on Bar?]]

  • HT4437 I bought a brand new iPad 3 and an Apple TV, both connected to the same wpa protected wifi network from home. It worked for a day, but when I woke up, the Apple TV couldn't be found anymore by neither iPad, MacBook or iPhone. Any clue? Thanks!

    I bought a brand new iPad 3 and an Apple TV, both connected to the same wpa protected wifi network from home. It worked for a day, but when I woke up, the Apple TV couldn't be found anymore by either iPad, MacBook or iPhone. Anybody a solution for this?

    Thanks for the swift reply, I have been looking online and a loose plug seems to be somewhat of an issue with many, I hope mine is actually a problem and not what others are experiencing. It's taken me this long to even reach out for the simple fact I HATE being a complainer but this is just horrible.
    Do you have an iPad 3 as well? And is yours not experiencing any issues close to mine?
    Thanks again!

  • I own a ipad mini and a iPod touch , both configured on the same apple account, how do I ensure that my data on the ipad mail,notes,pics etc is not visible/accessible on the ipod

    I own a ipad mini and a iPod touch both configured on the same id
    How do I ensure that my data on the ipad mail,notes,pics etc is not visible/accessible on the iPod touch when the iPod is connected to a wi fi connection

    Mail: do not have the same account loaded onto the two devices.
    Photos: go into Settings->Photos & Camera->and turn off photo stream.
    everything else, sign out of the Apple ID on the device you dont want to be visible.
    good luck

  • I have two ipod nanos.  And i have 2 itunes accounts and we are accessing both accounts from the same PC.  One of my ipod works fine, it gets detected as a device and sync fine.  The other one does not.  Need help.

    I have two ipod nanos.  And i have 2 itunes accounts and we are accessing both accounts from the same PC.  One of my ipod works fine, it gets detected as a device and sync fine.  The other one does not.  Anyone knows what this may be?

    The music sync is one way - computer to ipod.  The only exception is ituens purchases.  The ipod is not a backup device.
    Copy everything from the old computer or your backup copy of your old computer, to the new one.

  • HT4623 I would like to have both my lock symbol and mute symbol to be off at the same time can they both be in the control at the same time

    looking for a way to have. both mute in lock symbol in the control panel. don't like that I can only have one working at a time

    I have posted this many, many times here. See if this helps you understand how this process works with regard to system sounds and screen rotation lock.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the control center if you are running iOS 7. Swipe up from the bottom of the screen to get to control center . Tap on the bell icon and system sounds will return.
    If you are running iOS 5 or iOS 6, the system sound control is in the task bar at the bottom. Double tap the home button and swipe all the way to the right in the task bar to get to the speaker icon on the left side. Tap on that and the sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock can be accessed in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • I had two game centers. One on my iPod touch and one on my iPhone. They both were under the same email but my iPhone one had more achievements. When I downloaded iOS5, the account was changed to the iPod touch account. How can I change it back?

    How can I log into my old game center on my iPhone when the email address used is the same for the other?

    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                                              
    Apple will exchange your iPod for a refurbished one for $99 fr a 16 GB 4G. They do not fix yours.
      Apple - iPod Repair price

  • How many Apple devices can connect to one account? If I get 2 iPads for my home can they get apps under the same account or different accounts?

    I am wanting to purchase an iPad for myself and kids but I am wondering if they need to be setup under a different Apple account or just one. What about my iPhone that is under that account? So how many devices can be linked to an account before it is maxed out?

    I'm not sure what the total limit is (or if there is one), but two iPads and one iPhone is no problem - you only need one account and you can have the same apps on all three devices if you want without any issues (I have an iPad, iPhone and iPod without problems). There was a thread a few weeks ago about a newspaper app (though it could have been a magazine), where the issue could only be downloaded to one device, but that is the only time I've heard about that limit.

  • I currently have one input but need to run two loops. I cannot get the two while loops to run so that they both pick up the same data, they are both picking up alternate samples. How can I get them to both pick up all of the values?

    The system I am trying to create calculates a number of values based on an input. I need to make the calculations and display the values for an entire production run and for each hour. The only way I know to do this is to create two while loops, one looking at all the values that are received and one looking only at the values for hour long periods.
    Any help would be great.
    Thanks
    RossH

    Why do you think that you have to have two loops to accomplish this task? Why not use one loop and accumulate the same data into two data sets based on the two sets of criteria?

Maybe you are looking for

  • "Print to PDF" w/ Acrobat Pro 8 on Mac 10.6

    I have the following: MacBook Pro running OS X 10.6.3 Adobe Acrobat 8 Professional Customer support told me to post my question here, so this is what I am doing. I have a 800+ page pdf file open in Acrobat 8 Pro.  I want to "print" several non-consec

  • IPod refuses to play a certain song which plays fine in iTunes

    20gb iPod colour refuses to play a song I downloaded from the iTunes store, "Through the Fire and Flames" by Dragonforce. It plays perfectly in iTunes, but whenever I want to play it on my iPod, it automatically skips to the next song, despite not ha

  • Placeholder & Formula column

    hello friends, Can we use formula column into place holder column and vice-versa? Avinash Deokar

  • Captivate 5.5 freezing when opening Project Skin Editor Settings

    When I open Project > Skin Editor > Setting to adjust the font, my Captivate freezes completely.  My only option is to  ctrl+alt+delete to end the session and restart. I am using Captivate 5.5 and windows 7.  On the the fourth attempt, i received the

  • AE won't STAY on my network....and can't talk to it via wire...

    Been wrestling with a new fios connection and wireless router. So after some good advice here, I'm trying to re-establish my AE LAN as it was with DSL, which was one AE at DSL modem, one AE for air tunes at the stereo. I've got the AE at the FIOS rou