Audio duration and position-

I am using AudioQueues to play audio. In order to display a progress bar, I need to access the audio duration and the current position. Are there any APIs that I can use to get this info from the queue or the player?

I think you should know all of that from the state of your buffer callbacks. You tell the AQ services how much sample data you have, similarly, you should know where you currently are playing in that data, at least to within one buffer-length.

Similar Messages

  • What's the best audio filter and settings to eliminate echo?

    I shot an interview in a hallway. What's the best audio filter and settings to reduce/eliminate echo?

    There isn't one. You will be trying to remove the same frequencies as those you want to keep.
    Reshoot it, strategically position some heavy drapes and use close miking such as a lav and reliable monitoring quality headphones.

  • Cells size and position; Can they have parameters ?

    Hello,
    Currently I have an Object
    Start Date: 1 Jan 2008
    End Date: 30 feb 2008
    I want to set-up:
    - the position of the cell depending the start date
    - the wide of the cell depending the duration
    I'm working on Crystal Report XI R2
    Thanks in advance.
    Alex

    HI Alex
    Mentioned below are the stepsto conditionally change the X position of an object
    1. Right-click the field that you want to move conditionally, and select Size
    and Position.
    2. Click the Conditional Formula button next to the X position value field.
    3. In the Formula Workshop, enter your conditional X position formula text.
    For example, to move orders that were shipped late to a second column,
    enter formula text such as this:
    If (Orders.Ship Date) < CDateTime (2004, 01, 01, 02, 10,
    11) then 4320
    Note: The number 4320 represents the new position that you want to
    define as the second column. The position is measured in twips; there
    are 1440 twips in an inch.
    4. Click Save and close to return to your report.
    5. Click OK to save your position setting.
    Crystal Reports moves objects that meet your condition to a new position, but
    leaves those objects that donu2019t meet the condition where you originally placed
    them.
    Hope it will be helpful to you.
    Regards
    Asha

  • Why won't nano remember last chapter and position?

    annoying problem on nano, I have several lectures and audio books on my nano. chapters can beover an hour long,ifI stop playing the file, the nano forgets where it left off, so I have to manually hunt down the file and position, very tedious, particularly in sunlight. any ways to facilitate this?
    thanks

    Have you double checked to make sure you have the Remember Playback Position enabled for each of your audiobook tracks in iTunes from under each track's Options tab of its Get Info window as well? You might also want to tick the Skip when Shuffling option from under this same tab as well.
    If you do have to make these changes, you'll need to resync your iPod to update the changes to your device.
    B-rock

  • I have questions about audio timing and volume levels

    I have a question regarding editing the audio timing. There are a few section in my clip that the rythym is a split second off. What technique can I use to sync up the time by just a fraction of a second?
    so far I've tried use the re-time editor which I thought was gonna work but after I re-timed the section, I couldn't drop it back into place without having the lower clip change and make things more confusing, but I had a feeling I was doing thing right for a second. Was I on the right track or is there another way of doing this?
    on another note...
    I have some sections in my clip that are peaking in the red, but sound fine on my computer even at full volume. I hear no distortion at all. Does this pose as a problem, and should I re-adjust?
    how to connect cuts in final cut pro 

    This is actually a somewhat complicated subject. There are actually several different kinds of sync issues. Two major "classes": 1) some audio seems to speed up or slow down over time compared to other audio, and 2) audio that just needs to be aligned in time.
    One of the biggest culprits for sync issues is mixed bitrates. A typical FCPX project should default to an audio bitrate of 48kHz.  If you have 44.1kHz (or other bitrate) clips, mixed in, the first thing you should do is make sure all your audio clips are conformed to your project.
    Select your clips and then select:
    [Note: when retiming clips, even if only slightly, make sure Preserve Pitch is selected.]
    If that doesn't work, or your audio is "live" recordings and you'd like to tighten up performers timing a little, you can manually sync audio tracks to each other. (You should have at least one audio "track" with the best timing to be your "beat track".)
    The idea is to find the events you need sync'd in the audio waveforms; which means listening and seeing the pattern in the waveforms (turning on "scrubbing" helps); and you should find these indicators as close to the end of the clip as possible (you will need to zoom into the clips to see them clearly enough and you will need room to access the retiming slider on one of the clips... so... near the end is best.)
    Zoom into the audio clip on the storyline so you can see the waveform clearly, but not so far as to lose detail in the "subsample" range -- to start (it's very difficult to distinguish specific peaks if you zoom in too far.)
    With the audio clip selected and the playhead placed on the start of the "event" (bass beat, tom/snare hit, cymbal, etc.) type the M key to set a marker (markers on audio clips can be set on subsamples, so it will be "inside" a single video frame range.)
    On corresponing clips that you want to sync with the "master" clip, do the same thing: select the clip, find the corresponding "event" start for that clip, move the playhead to the beginning of the event (you might have to zoom in [command- +] on the storyline one or two times more to improve the resolution), type M to set a marker.
    You now have two markers you can align by retiming one (or more) of the clps to match the "master". Use the playhead and have it 'snap' to the master's marker.  When you retime the others, visually align their markers to the master's by using the playhead as a visual indicator for alignment.
    This technique can be used with video and audio that has gone out of sync, by finding the visual indicators of a specific sound in the video, setting a marker to mark the start of that event, then finding the audio event and setting a marker. You will need to detach the audio from the video first if you're going to work on it in this way.
    It's even easier to sync audio if there are no retiming issues (that is, you just need to align clips, not retime them.) Find the position markers as in the description above (anywhere in a clip since retiming is not necessary), turn on snapping, drag one of the clips until the markers snap... and you're done. You don't even need to use the playhead to have the markers snap to alignment with each other. Very convenient for adding foley/sound effects to video.
    HTH

  • Beats Audio Software and On Screen Volume and Brightness Icons Not Showing

    Hi,
    I have a HP Envy 6 Ultrabook 6-1010ea, It had to have a new hard drive due to hardware failure and now I have it back I can't find the beats audio symbol and the associated software, also the on screen displays of the volume control and broightness icons don't appear anymore, when I download certain drivers to solve the issues each one doesn't see, to work with the other, I can get sound back on the internet OR the icons back.
    If you could help I'd be very greatful, thanks.

    Hi:
    You should be able to use this audio driver for the Beats audio.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=ob-107829-1&cc=us&dlc=en&lc=en​...
    This software should restore the on screen display of the brightness and audio levels.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=ob-106851-1&cc=us&dlc=en&lc=en​...

  • Object Size and Position values not being retained

    Hi,
           I'm trying to set the size and position of a picture object in a report. This logo, should appear on the top right corner of the report.
    The margins of the report are Left - .79 in, Right - 0.79 in, Top - 0.79 in and Bottom - 0.39 in.
    The size of the picture object should be 1.574 x 0.79 inches.
    I have ensured that File -> Page Setup -> dimensions are in INCHES.
    I right click the logo and select 'Size and Position'.
    I set 'Y' (distance between top of object and top margin) = 0. This is to perfectly align the object with the top margin.
    Now, i set the height of the object = 0.79 inches. Ok the dialog and close.
    The strange thing happening is, when i re-open the size and position dialog, i see that the values i set are not being retained.
    0.79 becomes 0.810
    and
    0 become -0.010.
    What am i doing wrong here? How can i make sure the values i specify in the size and position dialog are  retained.
    Thanks.

    Ensure File | Options | Layout tab has the following UNMARKED!!!!
    Design View
      Guidelines
      Grid
    Preview
      Guidelines
      Grid
    Ensure that "Snap to Grid" is turned off.
    Make your grid size larger (.5 inches for example)
    What is occurring (I suspect) is that your objects are snapping to the grid - thus changing the position and possibly size due to the Snap to Grid being turned on.

  • Hi i upgrade from lion to mountain lion to day on my mini mac,Since the upgrade i am getting no sound through my HDMI cable which was working fine on lion Checked the midi audio settings and system preferences to out on HDMi nothing no sound whats so ever

    Hi i upgraded from lion to mountain lion to day on my mini mac,Since the upgrade i am no longer getting sound through my HDMI cable which was working fine on lion Checked the midi audio settings and system preferences to out on HDMi nothing no sound whats so ever.Any one any ideas?
    I use a samsung TV for my monitor via HDMI.Tried all the system Audi setting nothing .Head phone and internal speakers are fine.

    Similar issue; Audio was working fine on Lion, now not on Mountain Lion. Have a Macbook Pro early 2011 with AMD Radeon HD 6750M, connected by thunderbolt through a Lacie LBD to a mini-displayport to HDMI adapter (n.b. same problem when not going through the LBD) to a Pioneer VSX 521 AV receiver. For me when I go into audio Midi settings all the volume sliders for the displayport device are greyed out and at zero. But when I click 'configure speakers', it's able to send out the test signals to each speaker. Part of the problem could be that I'm not getting the option to put out 6channel sound, only 2 or 8 channel. Since my system is Dolby 5.1, and I only have 6 speakers, I would have expected the 6ch option to be available. But I imagine there's more to it than that. Elsewhere someone has suggested playing with Remote Interactive over HD on an Onkyo device; I'll see if there's something similar on the Pioneer that can be changed. Any other suggestions welcome.

  • Sample rate off the audio input and out devices do not match - what to do?

    This is fundamental, I know, but nevertheless I can't find my way around it. I get this error message when trying to recor:
    Sample rate off the audio input and out devices do not match
    and am asked to do this:
    Use the appropriate operating system or audio device control panel to adjust the sample rates of the input and output devices to use the same settingt.
    I have defined the sample rate to 44.1/16 bit in accordance with my inbuild soundcardt.
    I am trying to record from LineIn.
    When running on a M-Audio sound card I don't face any problems.
    HP 8560W, sound card IDT/High definition audio Codec
    Any suggestions?
    Knud
    Copenhagen

    You're sure you have set BOTH the input and output settings to 44.1 16 bit?
    Which version of Windows are you running?  There are a number of posts on this forum about how to fully access both the Windows Mixer and the Mixer for your soundcard.  Especially, you need to ensure that all "Windows Sounds" are turned OFF.

  • Audio in and audio out is not working in imac after i install lion 10.7

    i have a imac i update my mac to lion 10.7
    after that i open grageband and it sayes no adieo in and out are found
    and i also loke in the grageband preference  and i loke in Audio /MIDI
    and audio output say no drive found and in is same thing
    but on MIDI Status it sayes 1 midi input found
    enebody know what will be the problem

    Hi gusto,
    I checked the above mentioned KB and the fix that worked for you is in the KB: https://help-internal.adobe.com/content/help/en/creative-suite/kb/acrobat-failed-launch-30 -days.html
    Try running the patch again and see if that helps.
    Regards,
    Rave

  • Can you change the units used for size and position in layout editor?

    Hello,
    In Aperture 3.4, does anyone know if you can change the units used for size and position in layout editor?  The page is set in inches, but the image size and position are given in centimetres and I would prefer to work all in inches to create custom layouts.  I can't see any way to change this.  If anyone knows how it would be much appreciated.  Thanks!

    Aperture uses the unit settings defined in the System Preferences.  Set the "Measurement Units" in the "Region" tab of the "Language & Text" preferences to "US"; the Aperture will display the Size & Position in inches, if it is the "Book" layout manager you are asking about.
    Merry Christmas!
    Léonie

  • How can I use a different driver for audio input and output?

    I did a search of course, and came up with something about an aggregate. I have no idea what this is, how to do it, or if it would even work for me.
    What I am trying to do is:
    1) Record into Logic Express using my Tascam US-122.
    2) Have playback come out of my computer sound system, not the Tascam.
    If I go over to the Audio setup window, I can only record when the driver is set to Tascam US-122. Likewise, I can only listen to sound when my Built-In Audio is selected. It gets rather annoying going between the two.
    So, would this aggregate thing solve my problem? If so, how do I do it? Thanks for any help!
    -allen

    Yes it should do what you want.
    Go to "Audio Midi Setup", and go to the Audio menu and click "Open Aggregate Device Editor". The interface is pretty simple but if you do get stuck, just use the help function in Audio Midi Setup, as it has a step by step guide.
    Then when you return to logic, go to the Preferences>Audio>Drivers section and select Aggregate Device as the new driver rather than either the built in sound or the tascam. Then the inputs and outputs will apply to BOTH devices.

  • How do I upload audio books and music at the same time

    I like listening to Audio Books as well as music but everytime I upload any music it deletes the audio books and when I upload audio books it deletes the music. How do I keep both on my iPhone without the other being deleted.
    Cheers

    Thats what I was doing wrong. Both music and books were ticked but I wasn't clicking on the books tab and ticking what I wanted to upload there.
    All I need to do now is work out why iTunes stops working when I start typing to submit details gracenote.
    Thanks

  • How to use a bluetooth cellphone for audio input and output

    Hello, I was wondering how to set-up my Mac Book so that I can use my bluetooth cellphone for audio in and audio out. Ideally, I would like to use my handset for talking on iChat and Skype. Has anyone had any luck doing this? When I bond my cellphone these optiosn do not appear. I know that this is easy to do on a Windows machine but I am not sure about how to do it on my Mac Book.
    Thanks!

    Yes it should do what you want.
    Go to "Audio Midi Setup", and go to the Audio menu and click "Open Aggregate Device Editor". The interface is pretty simple but if you do get stuck, just use the help function in Audio Midi Setup, as it has a step by step guide.
    Then when you return to logic, go to the Preferences>Audio>Drivers section and select Aggregate Device as the new driver rather than either the built in sound or the tascam. Then the inputs and outputs will apply to BOTH devices.

  • How can I record an audio sound and convert it to a ringtone?

    How can I record an audio sound and convert it to a ringtone?

    Record your voice using iPhone (for ringtone only 35 secs or under are valid), sync iPhone with iTunes.
    In iTunes the recorded voice is listed under Music as some_numbers.m4a.
    Right click on the item and choose Create AAC version.
    Drag the converted voice onto the desktop.
    Delete the voice copy in iTunes. (important step)
    On desktop, rename the some_number.m4a to something_more_intelligent.m4r
    Drag it back to iTunes and you will find it under Tones.
    Now select it (for sync) and connect your iPhone, do a sync.
    If everything works out, it will be in Settings > Sounds > Ringtone.
    Now choose a contact you want to assign this ringtone, tap Edit and add the ringtone.
    Hope this helps.

Maybe you are looking for

  • XML Publisher report not printing German character ü properly

    Hi We have a BI PU Report which gets the XML from the 10g report. When I run the report in Oracle Apps, the XML generated by the report has the correct name, but the pdf output doesnot show the correct name on it. Name (in XML file): *<FSE_NAME>Kühn,

  • File Content Conversion : File to File Scenario

    hi all, I have a Input file It has the following structure: <?xml version="1.0" encoding="utf-8"?> <n0:rfc_proxy_message_type xmlns:n0="http://kpr.com/sample"> <Name>abhishek</Name> <Age>10</Age> </n0:rfc_proxy_message_type> I use a File to File Scen

  • Default screen size 17 macbook pro

    how do I reset screen size to default size tried all sorts and does not seem to look right

  • What specific fields do we map Help

    This is scenario 1..these are pretty standard scenario`s... R/3  =========> XI ==========> ThirdParty App           IDOC                   SOAP ThirdParty App ==========> XI ===========> R/3                          SOAP                        IDOC T

  • New iPhone Dead MBP

    I bought a new iPhone last week and set it up on my MacBook Pro. I downloaded several applications from iTunes, synced my calendar and contacts from my old cell phone using Outlook. So everything works great with my iPhone, except my MacBook Pro died