Streaming audio using AudioToolbox

I have successfully managed to stream audio over HTTP to the iPhone/iPod touch using AudioToolbox (AudioFileStream and AudioQueue).
This worked great, but came with a problem.. When streaming larger mp3/mp4 files (10MB+) you can get a lot of data cached in RAM before it is played back. This causes the iPhone OS to kill the application because it's using up too much memory.
I then tried to cache data on disk instead, and read the data with a normal AudioFile. This, instead, came with problems like how much data to pre-cache and how to know if the audio had stopped playing or if you just ran out of data for example.
Anyone have any other ideas?

Hi
I was trying to stream audio using the AudioToolbox framework. I get stuck when trying to stop a song in the middle and play another song. Can you please help me out with it!

Similar Messages

  • Streaming Audio using JMF

    I am trying to create a application that uses streaming audio and would be an internet radio with a server that will stream songs and a client that can listen to the stream. How can I stream audio, specifically mp3 files, using the JMF?

    I am in a similar project.
    I found JMF does not provide enough support for stream.
    I can't split a stream into some packets and transfer them to another peer.

  • Recording Streaming Audio Using Total Recorder in Vi

    Last year I purchased High Criteria's Total Recorder to successfully record sounds over the internet, etc. Earlier this year I bought a new PC with Vista and onboard sound, and I?installed Total Recorder on the new PC. ?It no longer worked. I checked their website, but they weren't much help. They said to look for a "wave out" option in recording, but there was none. Thinking that it was the onboard audio causing the problem, I bought and installed an Audigy SE sound card yesterday. While it gives me a few more recording options, I still can't use Total Recorder. Cqan anyone please give me some suggestions as to how to make this work? Or is there another program out there to record streaming audio in Vista? Thanks.

    Hi
    Can you record using mp3 or wma -format (on 28kbps) with these tools you have? These formats packs wav data to ~/0 deal from original without huge quality loss.
    If not you can try if there is some other recording tools. There are also freeware products on many SW sites like
    http://www.download.com/Audio-Video/200-2025_4-0.html?tag=dir
    http://www.winsite.com/
    .jtp

  • Streaming audio using safari

    itouch 1st gen. I can connect fine to my wifi, however whenever i try to connect to a radio station to listen"live" or connect to my sirius account. It shows that's playing, but there is no sound. Does this thing not stream audio??
    I have upgraded to the 2.2 firmware.

    iPod Touch is capable of streaming via WiFi with Webapps that provide radio streaming
    Some examples of Apps that support this feature below.
    AOL Radio
    iHeartRadio
    Pandora Radio
    You may want to check the Sirus website and see what type of requirements are needed to listen to it on mobile devices. It may need to install a plugin of some sort to give you full audio.
    You may wish to also submit feedback to Sirus and let them know your interested in iPod Touch App to listen to the radio shows.

  • Playing streaming audio using Airport

    I have a iMac4 (10.4.11) with an AirPort Extreme (0x14E4, 0x89). I also have an Airport "box", plugged in to the wall, and connected to the back of my stereo. iTunes plays without a hitch through the stereo, but baseball season is coming and I am trying to figure out how to stream audio (not coming through iTunes) via Airport to my stereo. Hope that's not too convoluted!
    Can this be done? Must I resort to fuzzy AM signals?

    This can be done with a low cost utility called Airfoil - see:
    http://www.rogueamoeba.com/airfoil/mac/

  • Streaming audio using netconnection and netstream

    I'm trying to set up an audio stream using netconnection and netstream to a HEAAACV2 stream.  I followed the built in instructions, and I believe I am close, and possibly missing a key element, which I'm hoping one of you could point out.  Here is what it looks like:
                private function playAudioStream():void
                    nc = new NetConnection();
                    nc.connect("http://3153.live.streamtheworld.com:443/247COMEDYAAC_SC");
                    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    private function netStatusHandler(event:NetStatusEvent):void {
                    try {
                        switch (event.info.code) {
                            case "NetConnection.Connect.Success" :
                                // If the current code is Start, start the timer object.
                                ns = new NetStream(nc);
                                ns.play();
                                break;

    hi Chris,
    thanks for your two posts above. It's true, I certainly could have easily waited a week or two or more! I forget that updates need to be broken in order to become reliable.
    My password is 8 digits but your suggestion of 12 is a good idea. I have had "passwords" on the project list for some time now. I still have a few that go back to the 90s when everyone used their initials as their unique password for everything. As a user I feel the biggest problem is consistency. Minimum and maximum lengths, character type, case sensitivity; these are all variables dependent on a website's developer or owner's whims. Perhaps that's as it should be but it's difficult to keep track of all those passwords. I really should get a handle on all of mine and sort them out.
    In any event, I trust Apple will fix this WiFi problem and let us get back to the best security options available to us.
    To other readers, I'm happy to say that the switch to TKIP seems to have solved my problem. I listened to the Minnesota Public Radio stream (using their own app) for a couple of hours last night without any buffering issues, and have been listeneing to TuneIn Pro for awhile now this morning. All good...
    Ciao
    Tim

  • Streaming Audio using Air Tunes during a presentation

    Hi Apple,
    I would like to know is there an Air Tunes feature in Keynote? Or is Keynote Air tunes compliant? For example, if added audio to my Keynote presentations and I was presenting in an auditorium, the only thing the AV people would have to do is connect the audio out port from an Airport express to their audio setup. The presenter would be able to select Air Tunes streaming and stream the audio from Keynote to the attendees. No wires, no fuss, no mess...

    This will work with a computer running Air Tunes and an Airport Express, but will not work with iPad. iPad does not have the same features in the iPod app that you see in iTunes for selecting Airport Express speakers.
    Message was edited by: Craig Brady

  • Streaming Audio via Datasocket

    Hei,
    This is not a problem I'm having but rather a research. I'm currently researching a possibility of streaming audio using a DataSocket solution. 
    Has anyone already tried it, are there any pitfalls i should be aware of?   Or is there a better solution?

    Thanks man,
    I got it to work again!
    Basically, Like you said deleted both devices from each others pairing...
    and restarted the Iphone, then re paired the 2 devices and got it to work again.
    Not exactly sure what happened in this updated that triggered this, but if anyone is having this issue.
    try those steps to fix it.

  • I want to be able to use airplay to stream audio to another iOS device, and then use that audio stream to be used when recording video instead of the built in microphone / microphone input. Is this possible?

    I want to be able to use airplay to stream audio to another iOS device, and then use that audio stream to be used when recording video instead of the built in microphone / microphone input. Is this possible?

    A third-party app probably cannot obtain a stream from another app. To the best of my knowledge, such a capability is not provided in the software development kit, apps being "sandboxed" from each other and so allowed to communicate only in very specific and limited ways.
    I'm not completely sure what you mean by "limitations on video capture". An iPhone, to the best of my knowledge, can natively record video only through it's built-in camera, and audio while doing video recording only through the built-in microphone or mic/headphone jack. There might be a video recording app that would allow audio input from an external device connected to the dock connector, but I'm not sure.
    Regards.

  • HT200197 NO audio using Apple TV for streaming materials, and YES audio for Mac stored ones; what gives?

    NO audio using Apple TV for streaming materials, and YES audio for Mac stored ones; what gives?

    Hello Cravate,
    The following article provdies some useful troubleshooting that can help resolve audio issues with your Apple TV.
    Apple TV (2nd and 3rd generation): Troubleshooting audio issues
    http://support.apple.com/kb/TS5150
    Cheers,
    Allen

  • Using CAN bus to transport and play the stream audio data

    hello,
    Just want to build a PC-Based control network using CAN bus (Ethernet not considered).The system is separated two parts , one is the front unit(FU), and the other is the centeral unit(CU). FU performs dialing-up number to the CU , and play the stream audio media data come from CU, CU monitor the telephone call activated from FU's user , send rm or mp3 data to the FU . I'd like to know if CAN bus could realize this function? if it can , which hardware must be supplied ? Is there any suggestion that not use PBX to realize the voice (telphone) communication ? Please give an solution , your advise is greatly appreciated . Thanks.
    David

    Hi David,
    the CAN protocol essentially just gives you the ability to transfer (broadcast) up to eight data bytes across the network at a maximum data rate of 1 Mbit/s.
    There are so-called higher level (or layer) protocols that further specify the data exchange between a data producer can the consumer (DeviceNet, CANopen, etc.).
    If your application is not tied to any of those protocols, that means you have the freedom to design all (CAN) nodes of your network, you can implement your own protocol based on the eight data bytes and the arbitration ID CAN offers.
    For more information on the CAN protocol, take a look at appendix B of the NI-CAN Hardware and Software Manual, or visit the web site of CAN in Automation (CiA).
    For your particular application you would need a CAN port on both the FU and the CU (preferably high-speed physical layer) and a PCI interface CAN card for you development.
    -B2k

  • Streaming Audio through Iphone 5 to desktop or laptop using bluetooth preinstalled on all devices not working. Help!!!.

    Streaming Audio through Iphone 5 to desktop or laptop using bluetooth preinstalled on all devices not working. Help!!!. Does anybody else have this problem?. Or does anybody have a solution to the problem. If So please help me its driving me demented seriously concidering to go to android for that sort of stuff cause of the dame restrictions on apple devices!

    iOS devices do not pair with computers, as data transfer over bluetooth is not supported.
    Computers are not airplay compatible unless you have downloaded an app to make them so.
    User to user forum, so I don't care if you switch to android or any other threats you make.

  • HT4437 how  can i stream audio to ipad from video playing on the apple tv using air play?

    how  can i stream audio to ipad from video playing on the apple tv using air play?

    I don't know what AppleTV can handle as far as bit rate is concerned, but increase the bit rate as high as it will let you. You are taking DV which is 25Mb/s and compressing it. If you're making an H.264, you should get great results needing no more than 6Mb/s. Bear in mind, the higher the bit rate, the larger the file size.

  • How to use Audacity to capture streaming audio

    Hi all-
    I have Audacity and am trying to figure out how to capture streaming audio from an internet radio station. Have heard this is possible, but as yet have not been able to figure out how to do it. Any ideas?
    DK

    Hello,
    but when I created a package and added OdiWaitForLogData, pb began. the step that has OdiWaitForLogData succeed. but my interface failed. the step "Load Data" failed.why?
    There is no reason for that. WaitForXXX does not affect the data stored in the CDC infrastructure, but just detects it.
    - What type of CDC are you using: simple or consistent set?
    - Did your interface used journal data only?
    - What error did you get precisely on the "Load Data" task?
    Could you tell me how to schedule a package?For scheduling, I think you should have a look at "Generating a Scenario" in the user manual. under the generated scenario node, you'll see the schedule node and you can start scheduling from here.
    Regards,
    -FX

  • Streaming Video and Audio Using Flash

    Need help, streaming video and audio using Flash and/or
    Dreamweaver, want it to load fast and be very clear. It is
    imparitive that I have control buttons. Can any one assit me in the
    best methods to follow that will give me the performance variance.
    Jason

    Check out tutorials & samples here : http://www.adobe.com/devnet/flashmediaserver.html
    You can check even fmsguru.com : http://fmsguru.com/tutorials.cfm?tab=all

Maybe you are looking for

  • Mail Preferences and lost Messages

    Had an issue after a software update: finder constantly relaunches. Tried, PRAM zap, reinstall sys, removing com.apple.finder.plist preference. Nothing worked. Then I relocated my entire preference file. Now the problem is gone, it was some preferenc

  • What if I don't have a credit card?

    I don't have access to a credit card. How am I supposed to acquire the 2.0 software update for iPod touch now?

  • Reg: Additional header tab strip in MIGO Transaction

    Hi Experts, I have added a new header tab strip in MIGO transaction. The tab strip is triggered using the BADI 'MB_MIGO_BADI' (PBO_HEADER method), I populated a selection screen using module pool program through the same BADI. Now i need to update th

  • How do you separate tracks using effects with patch mix

    I step record using a oxygen 8 for my midi stuff and then I use a few tracks of real time audio .I just purchased a e-mu 0404 heard good and bad about it but it seems once you get past all the software issues then, its a quality sound.so far I have a

  • Mod4 as escape key in screen?

    I was wondering whether and how the C-a combination in screen could be replaced by the "windows" key