How does Core Audio set sample rate?

When I play a particular movie in QuickTime, the audio and video are out of sync. The movie plays fine on other computers.
This Mac Pro (OS 10.6.8) is used exclusively for Pro Tools and Final Cut Pro. The audio hardware is a Pro Tools HD Native card:
Native card --> Pro Tools Digital I/O boxes --> Lavry D/A converters --> monitors
The sample rate of the Digital I/O boxes is set by an external master clock, a Lavry Gold A/D converter.
I opened the DigiDesign Core Audio Manager and it says:
Connected @ 44.1K, 32 In/32 Out, Buffer Size 512
Yet the movie is at 48K (I know because I created it in Final Cut Pro), and the external clock is set at 48K. So, I don't know where the 41K in the Digidesign Core Audio Manager came from. This is why I am guessing the problem is sample rate.
Please help me understand what sets the sample rate.
Does the application using Core Audio set it?
If so, how is this made consistent with the sample rate set for the hardware by the external master clock?
Do I have to be sure I always change the external clock setting to be consistent with the movie being played?
BTW, I have not had a sync problem when I play video in Final Cut Pro..........it is always in sync. So, I have never worried about how Core Audio works. The sync problem is only with QuickTime.

Well, here is more information:
- I reinstalled QuickTime 7 and did many other things (trashed preferences,etc)
- I set the audio hardware (Pro Tools/HD Native card) to 48k
- I checked the Digi CoreAudio Manager and it said "Connected at 44.1K", even though the hardware was set to 48K
- I played the problem videos, and all are now in sync
- I check the Digi CoreAudio Manager and it still says 44.1K
- I checked the hardware and it is now set to 44.1K
I know that the videos are 48K, because I created them in Final Cut Pro X.
Does this mean that QuickTime 7 always converts videos to 44.1K, regardless of their sample rate?

Similar Messages

  • Core audio and sample rate conversion

    I would like to know how to take manual control over core audio regarding sample rate destruct... er conversion. First - I know the workarounds - simply closing the audio player of choice, resetting the external hardware and relaunching the audio player of choice.
    setup:
    I run external converters with an external sample rate clock source. No problems or issues here. I keep my music collection segregated by SR (96k, 88.2k, 48k, 44.1k) as I ALWAYS listen through external converters.
    The annoyance is when one forgets to keep track of core audio and inadvertently ends up listen to a piece of music sample rate destructed. You know - walk up to music server computer, forget that you had DAC set to 44.1k for last music played, put on 96k source, SRC takes over and you don't notice the artifacts and distortion for a few songs. No one wants that! Don't get me wrong - it's a convenient feature and the amateur user would be sunk without it.
    What I want is an indicator that will tell when SRC is turned on and further, what the input and output sample rates are (as far as core audio is able to determine from the hardware anyway). In my world this would have been a check box in a preference setting. Perhaps someone has written a script or app for this? Command line instruction?
    Thanks

    Start with http://developer.apple.com/documentation/MusicAudio/Conceptual/CoreAudioOverview /Introduction/Introduction.html and direct further queries to the developer forums under OS X Technologies.

  • How to render audio with sample rate 48000hz using jmf

    hi,
    In my application i need to play the audio with jmf player with sampling rate 48000hz. but i found that jmf player plays the audio with sampling rate of 44100hz only.but my application needs to play the audio with sampling rate of 48000hz .please help me how to do this using jmf .
    thanks in advance,

    hi,
    In my application i need to play the audio with jmf player with sampling rate 48000hz. but i found that jmf player plays the audio with sampling rate of 44100hz only.but my application needs to play the audio with sampling rate of 48000hz .please help me how to do this using jmf .
    thanks in advance,

  • How is Core Audio sample rate set?

    When I play a particular movie in QuickTime, the audio and video are out of sync. The movie plays fine on other computers.
    This Mac Pro (OS 10.6.8) is used exclusively for Pro Tools and Final Cut Pro. The audio hardware is a Pro Tools HD Native card:
    Native card --> Pro Tools Digital I/O boxes --> Lavry D/A converters --> monitors
    The sample rate of the Digital I/O boxes is set by an external master clock, a Lavry Gold A/D converter.
    I opened the DigiDesign Core Audio Manager and it says:
    Connected @ 44.1K, 32 In/32 Out, Buffer Size 512
    Yet the movie is at 48K (I know because I created it in Final Cut Pro), and the external clock is set at 48K. So, I don't know where the 41K in the Digidesign Core Audio Manager came from. This is why I am guessing the problem is sample rate.
    Please help me understand what sets the sample rate.
    Does the application using Core Audio set it?
    If so, how is this made consistent with the sample rate set for the hardware by the external master clock?
    Do I have to be sure I always change the external clock setting to be consistent with the movie being played?
    BTW, I have not had a sync problem when I play video in Final Cut Pro..........it is always in sync. So, I have never worried about how Core Audio works. The sync problem is only with QuickTime.

    You might ask on the GarageBand, Logic or Final Cut forums. There is not much audio traffic here.

  • DIgital audio in sample rates, 441 48 96 but no 882... is there a way to ad

    When feeding my macbookpro a digital audio signal via optical cable while viewing the audio midi setup utility, it shows that the mbp's internal clock automatically switches to the incoming sample rate. I got it to work with 441,48 and 96k. When I fead it the 882 sample rate it automatically switches back to the mbp's internal clock and reverts to line input instead of digital. So the audio midi setup utility shows when it is in digital input mode the three sample rates 441,48 and 96k in the format pop up window and not 882 so it must be just a software issue and I am wondering if there is a way to add the sample rate to the list. If it can take in 96k it should also be ale to take in 882. So does anyone know how you could ad a sample rate of 882 to the list in the audio midi utility format list?

    One added note. The reason that I want to be able to do this is I like to record my audio projects at 882 and if the mac book pro could except the sample rate I could then use it as a 882 digital 2 track recorder. Enabling me to skip hitting the bounce to disk function in pro tools and actually be able to ride a fader as the mix is printing to the macbookpro, where as when you bounce to disk in pro tools you cannot access the mix as it bounces to disk.

  • Set sampling rate and bits on Audigy 2 Va

    Hi guys, I really need your help:
    I dont know how to set sampling rate from 6bit 48KHz, which the audigy 2 can be set upto 24 bit 92 KHz.
    Please help me
    thank you

    Can you check the rear output on the soundcard with a set of headphones, to check if that works? As long as the speaker selection is set correctly (5.), then it should work.
    Cat

  • How to force digital input sample rate?

    Does anyone know how to force a Digital Input sample rate and/or tell Core Audio which conversion clock to use... internal or external? Apparently both things can be done from Pro Tools, but I don't have it.  My problem is locking onto an A/D converter's 48K Toslink output.  I can set 48K in 'Audio - Midi' setup and the audio is perfect, but a few seconds later  Core Audio returns to the default 44.1K.  I need to force it to stay at 48K, or clock on the signal rather than internal clock.

    Braver,
    Let me clarify a few things. First, the 6733 supports correlated digital I/O. This means that the digital operation does not have its own clock. You can correlate the digital operation with the AO clock, which will allow a digital operation up to the max AO rate. You can generate a pulse train with an onboard counter and use that as your digital clock source. Also, you can use a completely external clock source to achieve the max digital rate of 10MHz. The knowledge base, linked below, points you to a couple of examples that ship with LabVIEW. Be sure and read the documentation associated with each example.
    Knowlege Base
    As for
    the example CDI Single Point clocked by Counter (E).vi, notice how the output of...

  • How do i ensure my sampling rate is a constant and correct (@250Hz) when using AI Sample Channel vi

    I am running a VI that samples 2 channels using the AI Sample Channel vi within a for loop (executing equal to the number of samples i require), i then calculate the difference between the channels. Within the for loop i use a chart to displays this difference in realtime.
    On exiting the loop the data is converted to an array, which in turn i then convert to a waveform (using dT as 0.01 as an arbitary solution at the moment). The waveform is then compared to limits using the limit specs and limit testing vi's.
    There is also other code displaying graphs from the previous iterations of the VI.
    My question is how do i control the aquisition rat
    e so that i know that the AI Sample Channel vi is sampling my data at a set rate (250Hz)?
    I have tried to use some of the hardware timed exaples supplied by NI to no avail. They can't give me the single point output required within the initial for loop for the real-time display.
    Any solutions welcome!!

    How about buffered acquisition? You can let your DAQCard acquire the number of samples you require instead of doing it with a FOR loop. Using a FOR loop means that you are software timed, which may as well be untimed since it's about as deterministic as the weather in Florida.
    Look for the "Acquire N Scans.vi" example.
    If you want to do this the RIGHT way, use continuous acquisition. Start your acquisition and keep doing AI Read in a loop. Also include your porcessing and display functions in the loop. Just make sure your loop runs fast enough to keep up with your acquisition. At 250 Hz, you should have no problem.
    Dan Press
    www.primetest.com

  • G530 / XP. Playing projects in 44100 Hz makes problem. Can't set sample rate of the sound cart

    Hi, I have already instal Sonar on my new Lenovo...
    And what i see.... In the soundCart (conexant HD smartAudio 221) no 44100 Hz!
    And i can't find something that looks like place to change it.
    How can i do this?
    PS: XP.
    Thanx

    The red line indicates the audio must be rendered. This may be caused by several things but your playback settings may be set too high for your system to handle. You may have too many audio tracks for your computer to play in realtime.
    Select one of the audio files in the timeline, get properties, not the audio format and sampling rate.
    Now got to Sequence>Settings and determine if the settings match your audio settings.
    Your online help system can guide you through adjusting your system settings, user settings and sequence settings.
    bogiesan

  • Set sample rate to 96 kHz in iMac

    If I go to Applications>Utilities>Audio Midi Support, I can set the Sample Rate to 96 kHz, but in fact the Sample Rate is back at 48 kHz next time I look.
    Question: How can I get the machine to accept and stay at the new sample rate of 96 kHz?
    Robert

    Hi Robert, try this...
    Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Then move these files to the Desktop for now...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    /Users/YourUserName/Library/Preferences/com.apple.audio.AudioMIDISetup.plist
    Reboot & test.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.

  • Setting sample rate to 22 kHz

    Hi All,
    Im trying to create a 48kbits/22kHz mp3 mixdown/bounce of my project in logic express 7.2.3. Has to be 22 kHz to play in flash player on website. The bit rate is no problem as its a setting in mp3 bounce.
    Problem is when i go to select from Audio > Sample Rate i dont get 22 kHz as a sample rate, only 44kHz upwards
    Ive searched manual and forums but cant seem to find an answer on how to do this. Also most 3rd party conversion software ive come across doesnt allow resampling, only rate conversion. I know i can do it in another editor, eg audacity, but i would prefer to do it all in the one program.
    Can anyone help me on how to set up a 22 kHz / 48 kbits mp3 bounce?
    Thanks

    Thanks Noeqplease,
    That really is a pity. Audacity will just have to do it for now, and i might see if i can do most of my editing in that. Pity given logic expresses capabilities.
    Appreciate the quick reply

  • How do I control the sampling rate of a PCI-6602 counter

    Labview version: 7.1
    Processor: Pentium 4 1.8 GHz
    Hello All,
    I have two avalanche photo diodes connected to two counter entrances on a 6602 (ctr 0 and ctr 1).
    As can be seen in the attached VI, I'm generating a signal on ctr2 and using that as an external clock for the counters.
    My objective is to accurately read the counter values at a rate of ~100KHz (i.e. 0.01 ms between measurements) and to be able to control the rate via the front panel. This should be possible (80MHz timebase), however when I run the program it is only able to actually sample at ~5 ms intervals. Also I'm encountering error 200141 even though I set the rate in the counter to 1M, which should buffer enough.
    What am I doing wrong? Any help would be greatly appreciated.
    Thanks a lot,
    Attachments:
    FRET_ver_14.vi ‏456 KB

    Hello Aadam,
    After looking at your code, I would not use the DAQ assistants to implement this. The DAQ assistant are best to be used for simple acquistion and since you are looking to use more lower level properties of you card, I would suggest to move to use the lower level VIs. It will be easier to understand where the problem is occurring at and will run better than using the DAQ assistant.
    I have done some initial research for you to implement this design. I have described each of them below and how they will assist you.
    The first example I have found is the Change Counter Output Frequency While the Task is Running. In this example, it will show you how to change the frequency and duty cycle of a counter output frequency task. One thing to remember about these counters are that the frequency will not change until the period has finished. For example, if you changed the frequency in the middle of a period of frequency of 1 Hz, it has to complete the 1Hz period before changing it to the next frequency.
    The next example I would investgate is in the NI Example Finder called Correlated Dig Write With Counter.vi. The NI Example Finder can be found in Help » Find Examples... This VI will explain how to use the counter as a clock for another task. You will need to combine the concepts of the first example with this to make sure that you can vary the sample clock.
    Finally, in the NI Example Finder, there is an example how to count digital events with an external clock called Count Digital Events-Buffered-Continuous-Ext Clk.vi. With this example, I first suggest to add the counter task and make sure you can get the external clock to work. After this, I would then implement changing clock.
    Jim St
    National Instruments
    RF Product Support Engineer

  • Q: Convert audio bit & sample rate during import

    I have a project that's in 24bit/48KHz, and want to import an audio file (mp3) that's in 16bit/44.1KHz.
    When I import the mp3 file into the project either through drag & drop or the Add Audio File dialog box, it doesn't convert the file into the project's native bit & sample rate. Consequently, when I play it back in the Arrange window it plays in chipmunk voice.
    I thought Logic used to automatically convert audio files into native resolution. How do I do this in Logic 8?
    Thanks,
    Steven

    Thanks for the response. My project currently does have those options checked, and it's still not converting.
    To double check, the mp3 file does get copied to the project's Audio Files directory. It also creates a file with the same name and the file extension .ovw - but doesn't seem to be converted.
    Any ideas? Thanks again -

  • Setting sample rate for sinus analog output

    Hello,
    I've been trying to do something very simple : using an analog output of the card PCI 6221 to produce a sinus curve of frequency 50 Hz. For this I used a Vi to create a sinus curve and the different DAQmx VIs. But I have difficulties understanding the principle of virtual channel and I think I'm doing a mistake setting the sample rate and samples number : one time for the sinus vi, second time for "DAQmx - Timing". Should I use the same values for both of these VIs ?
    On my oscilloscope, with frequency=50Hz and sample rate=1kHz, I get a null signal. Then depending on both values, I get differently rated signals. For example with f=1Hz and sr=10kHz, a sinus of frequency 0,7 Hz.
    Solved!
    Go to Solution.
    Attachments:
    Sinus analog output.vi ‏32 KB

    Yes, thanks for your advice. I used the structure given in the example and now it's working fine. I'm still not sure what I did wrong though.
    I would have a second question now (should I create a new topic?):
    I put a continuous sine wave on the analog output. As soon as this is running, (or maybe after a short delay) I want to measure a limited amount of samples on my analog input. How can I be sure, it's not going to start measuring before the output is properly set ?
    I don't think a trigger would solve the problem since I'm going to vary the output Amplitude.

  • Can't set sample rate 1609

    Hi,
    we've recently upgraded to LV 8.6 and DAQmx 8.7 and then got problem with the data aquisition that uses the DAQmx API. For example, we have a cDAQ-9172 and 9239 AI module. The device could be user configured and a typical configuration could be a continous acq, single sample in 10 Hz. After upgrading the error -200279 "Attempting to read samples that are no longer available ... has been overwritten" has come up soon after the task was started. It turned out that the property SampleClkRate is not affected by the value that is put into the DAQmx Timing.vi, unless it was set > 1612,9, if you set 10,100 or 1000 or whatever the sample rate will still be 1612,9 when you read from the timing property.
    So the buffer then of course becomes overflown, but the question is why there is a minimum sample rate like this? Earlier it was fine to set it an arbitray value and the acquistion would be in that rate.
    There are many solution to get around this (read faster etc.), but it strange that the behaviour of the code can change like this from a version to another...
    /Henrik
    Solved!
    Go to Solution.

    I see one flaw in your program, you have hardware timing and software timing in one loop. The loop is limited by the software wait. (I think this is on purpose for demonstration).
    I have looked at the manual for the 9239 and page 18 notices that hte minimum input rate is 1613kS/s
    So that is explained, the only problem is that the DAQmx timing VI does not return an error or warning when setting a too low rate.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

Maybe you are looking for

  • How to display system property in XML forms

    Hi We are using XML forms template for publishing news in KM. In the show form we got author field (a label in the form) which is mapped to system property createdby (PropertyReference = /Properties/default:createdby).But while displaying the form au

  • How to Install or Use Perl in 11g client?

    Hi all, I read this doc: Perl 5.10.0 is included in the Oracle 11.2.0.1 client. Execute the following command to ensure that the correct version of Perl is in the user profile PATH. perl -V 'perl' is not recognized as an internal or external command,

  • New to Authorware

    HI I have recently started looking at Authorware 7. I am completely new to Authorware but not to macromedia products and have used Dreamweaver , Flash and Fireworks before. I am creating a virtual enviroment where the user can interact with things an

  • Lifetime affiliate commissions is not fair!

    Hello everyone  I recently put together an affiliate program for my website www.hashems.com  I went through all the trouble of having some custom programming done so that customers can actually link to one product and not just a catalog.   So now i r

  • Office applications crash when opening files from network

    Using Office 365 32-bit on Win7 Pro PC.  When I try to open a file from a network drive, Word, Excel and Powerpoint (that's all I've tried thus far) crash and restart.  I can open the same file from local without issue.  Using the FixIt tool removes