Re: Optical In Audio Device
Re: Optical In Audio Device
- Subject: Re: Optical In Audio Device
- From: Jeff Moore <email@hidden>
- Date: Fri, 16 Dec 2005 14:59:15 -0800
On Dec 16, 2005, at 1:46 PM, Kevin Kicklighter wrote:
I have an iMac playing a WAV file via the Toslink (optical) cable
into my G4 Powerbook. I generate the WAV files @44.1 kHz and I see
my data using the ComplexPlayThru example code, running on my
Powerbook, everything works perfectly. My question is that when I
change my data rate to 48kHz the data received is not 100%
accurate. Does the optical input on the Powerbook automatically
detect the data rate of samples over the line (light) ?
It's supposed to, but it will still, I think, advertise that it's
44.1k while the time stamps will actually read as 48K.
I tried setting the audio device "AudioDeviceSetProperty"'s sample
rate (in ComplexPlayThru.cpp) but in never succeeded.
What error did you get? I think that when the clock is locked to the
digital port, the sample rate may not be changeable.
I also tried modifying the Varispeed AU and OutputUnit's sample
rate to 48kHz, and that didn't work.
What am I missing? Just playing a sine wave in this configuration
sounds distorted, it's like the optical receiver is locked in at
44.1 kHz, and if there is a way to change it could someone please
let me know?
So the pitch is lower? Or are you hearing something else? Knowing
what the distortion sounds like can often lead to the cause.
Also, does anyone know of another way to generate digital audio
from one mac to the other ? I assumed I could used Firewire or
USB, but don't know how to do that yet? Any ideas would be greatly
welcomed (Ethernet could work if it was in the form of sound driver)
AUNetSend/AUNetReceive do a good job of that.
At any rate, the digital ports are a fine way to transfer the data.
But then again, for most things, just recording it to a file on one
mac and then using your favorite network protocol to copy the files
to the other mac.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden