AudioServerPlugin for Lion?
AudioServerPlugin for Lion?
- Subject: AudioServerPlugin for Lion?
- From: Tuviah Snyder <email@hidden>
- Date: Thu, 07 Feb 2013 17:21:29 +0000
- Thread-topic: AudioServerPlugin for Lion?
I have my user mode hal plugin working now on mountain lion. Just wanted to confirm there is no way to get it working on lion?
Best,
Tuviah
Sent from my iPhone
On Feb 7, 2013, at 5:54 AM, "email@hidden" <email@hidden> wrote:
> Send Coreaudio-api mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/coreaudio-api
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Coreaudio-api digest..."
>
>
> Today's Topics:
>
> 1. Re: A number of simple questions (still a few unanswered)
> (James McCartney)
> 2. iOS: AUReverb2 and room types (Chris Adamson)
> 3. Re: A number of simple questions (still a few unanswered)
> (Paul Davis)
> 4. Re: A number of simple questions (still a few unanswered)
> (Seth Willits)
> 5. Re: A number of simple questions (still a few unanswered)
> (René J.V. Bertin)
> 6. Re: A number of simple questions (still a few unanswered)
> (Seth Willits)
> 7. Re: A number of simple questions (still a few unanswered)
> (Jeff Moore)
> 8. Recording from remoteIO on iOS (Daniel Too)
> 9. kAudioUnitProperty_Latency not working in Logic
> (Vojtěch Meluzín)
> 10. Re: kAudioUnitProperty_Latency not working in Logic (Paul Davis)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 06 Feb 2013 13:45:11 -0800
> From: James McCartney <email@hidden>
> To: Paul Davis <email@hidden>
> Cc: Core Audio Mailing List <email@hidden>
> Subject: Re: A number of simple questions (still a few unanswered)
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> On Dec 5, 2012, at 12:11 PM, Paul Davis <email@hidden> wrote:
>
>>
>>
>> On Wed, Dec 5, 2012 at 2:14 PM, Seth Willits <email@hidden> wrote:
>>
>> Still a few I'm unsure about. :)
>>
>>
>> - Why is AudioTimeStamp.mSampleTime a float if it's an integer number of samples?
>>
>> because apple don't want accurate timestamps beyond 12 (or even 6 hours).</sarcasm>
>
> Answering an old question, but this is wrong.
>
> mSampleTime is a Float64.
>
> Float64s have 52 bits of mantissa. With the implicit one bit, that gives 2^53 representable nonnegative integers.
>
> Let's say you are running at 192000 samples per second.
> 3600 seconds per hour
> 24 hours per day
> 365.25 days per year
>
> pow(2,53) / 192000 / 3600 / 24 / 365.25 = 1486.57 years before loss of sample accuracy.
>
>
>
> James McCartney
> Apple CoreAudio
> email@hidden
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/coreaudio-api/attachments/20130206/6b9fe315/attachment.html>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 06 Feb 2013 18:50:04 -0500
> From: Chris Adamson <email@hidden>
> To: "email@hidden Mailing List"
> <email@hidden>
> Subject: iOS: AUReverb2 and room types
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=windows-1252
>
> Tried to set kAudioUnitProperty_ReverbRoomType on a unit of subtype kAudioUnitSubtype_Reverb2 and got -10879 (kAudioUnitErr_InvalidProperty).
>
> Does the AUReverb2 only work with the dry/wet, gain, etc. parameters? I just noticed a bunch of kReverb2Param_… entries at the bottom of AudioUnitParameters.h, with the comment "parameters for the IOS reverb unit", so I assume this is the case.
>
> Thanks in advance.
>
> --Chris
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 06 Feb 2013 18:58:14 -0500
> From: Paul Davis <email@hidden>
> To: James McCartney <email@hidden>
> Cc: Core Audio Mailing List <email@hidden>
> Subject: Re: A number of simple questions (still a few unanswered)
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> i'll use <incorrect><humor> tags next time
>
>
> On Wed, Feb 6, 2013 at 4:45 PM, James McCartney <email@hidden>wrote:
>
>>
>> On Dec 5, 2012, at 12:11 PM, Paul Davis <email@hidden>
>> wrote:
>>
>>
>>
>> On Wed, Dec 5, 2012 at 2:14 PM, Seth Willits <email@hidden> wrote:
>>
>>>
>>> Still a few I'm unsure about. :)
>>>
>>>
>>> - Why is AudioTimeStamp.mSampleTime a float if it's an integer number of
>>> samples?
>>
>> because apple don't want accurate timestamps beyond 12 (or even 6
>> hours).</sarcasm>
>>
>>
>> Answering an old question, but this is wrong.
>>
>> mSampleTime is a Float64.
>>
>> Float64s have 52 bits of mantissa. With the implicit one bit, that gives
>> 2^53 representable nonnegative integers.
>>
>> Let's say you are running at 192000 samples per second.
>> 3600 seconds per hour
>> 24 hours per day
>> 365.25 days per year
>>
>> pow(2,53) / 192000 / 3600 / 24 / 365.25 = 1486.57 years before loss of
>> sample accuracy.
>>
>>
>>
>> James McCartney
>> Apple CoreAudio
>> email@hidden
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/coreaudio-api/attachments/20130206/148a6cfd/attachment.html>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 06 Feb 2013 16:04:43 -0800
> From: Seth Willits <email@hidden>
> To: Core Audio Mailing List <email@hidden>
> Subject: Re: A number of simple questions (still a few unanswered)
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=iso-8859-1
>
> On Wed, Feb 6, 2013 at 4:45 PM, James McCartney <email@hidden> wrote:
>
>> On Dec 5, 2012, at 12:11 PM, Paul Davis <email@hidden> wrote:
>>
>>> On Wed, Dec 5, 2012 at 2:14 PM, Seth Willits <email@hidden> wrote:
>>>
>>> Still a few I'm unsure about. :)
>>>
>>>
>>> - Why is AudioTimeStamp.mSampleTime a float if it's an integer number of samples?
>>>
>>> because apple don't want accurate timestamps beyond 12 (or even 6 hours).</sarcasm>
>>
>> Answering an old question, but this is wrong.
>>
>> mSampleTime is a Float64.
>>
>> Float64s have 52 bits of mantissa. With the implicit one bit, that gives 2^53 representable nonnegative integers.
>>
>> Let's say you are running at 192000 samples per second.
>> 3600 seconds per hour
>> 24 hours per day
>> 365.25 days per year
>>
>> pow(2,53) / 192000 / 3600 / 24 / 365.25 = 1486.57 years before loss of sample accuracy.
>
>
> Still curious why it's a Float64 in the first place. :)
>
>
>
> --
> Seth Willits
>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 07 Feb 2013 01:12:16 +0100
> From: "René J.V. Bertin" <email@hidden>
> To: undisclosed-recipients: ;
> Cc: Core Audio Mailing List <email@hidden>
> Subject: Re: A number of simple questions (still a few unanswered)
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>
> On Feb 07, 2013, at 01:04, Seth Willits wrote:
>
>> On Wed, Feb 6, 2013 at 4:45 PM, James McCartney <email@hidden> wrote:
>>
>>>> - Why is AudioTimeStamp.mSampleTime a float if it's an integer number of samples?
>>
>>
>> Still curious why it's a Float64 in the first place. :)
>
> Who says there's an integer number of samples in a second, and not in say, 3 seconds? And how else would you represent the sample duration for a rate of, say, 17 samples per second?
>
> R
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 06 Feb 2013 16:44:58 -0800
> From: Seth Willits <email@hidden>
> To: Core Audio Mailing List <email@hidden>
> Subject: Re: A number of simple questions (still a few unanswered)
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=windows-1252
>
> On Feb 6, 2013, at 4:12 PM, René J.V. Bertin wrote:
>
>>>>> - Why is AudioTimeStamp.mSampleTime a float if it's an integer number of samples?
>>>
>>> Still curious why it's a Float64 in the first place. :)
>>
>> Who says there's an integer number of samples in a second, and not in say, 3 seconds? And how else would you represent the sample duration for a rate of, say, 17 samples per second?
>
>
> Forgive me since it's already been a few months since I was knee deep in Core Audio, but …
>
>
> That's what mSampleRate is for not, mSampleTime. mSampleTime is the "n" in "the nth sample."
>
>
> For example:
>
> memset(&timeStamp, 0, sizeof(timestamp));
> timestamp.mSampleTime = 0;
> timestamp.mFlags = kAudioTimeStampSampleTimeValid;
>
> for (int sampleIndex = 0; sampleIndex < 44100; sampleIndex += 512) {
> ...
> timestamp.mSampleTime = (Float64)sampleIndex;
> AudioUnitRender(outputUnit, &actionFlags, ×tamp, 0, 512, audioBufferList);
> ...
> }
>
>
> AFAICT it's always an integer value.
>
>
> --
> Seth Willits
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 06 Feb 2013 16:50:08 -0800
> From: Jeff Moore <email@hidden>
> To: Core Audio Mailing List <email@hidden>
> Subject: Re: A number of simple questions (still a few unanswered)
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=windows-1252
>
> Fractional sample times are very useful for doing synchronization calculations. They are useful for dealing with durations that are not an integral number of samples, like the wavelength of a 440hz sine wave playing on a 44100 device.
>
> --
>
> Jeff Moore
> Core Audio
> Apple
>
>
>
> On Feb 6, 2013, at 4:44 PM, Seth Willits <email@hidden> wrote:
>
>> On Feb 6, 2013, at 4:12 PM, René J.V. Bertin wrote:
>>
>>>>>> - Why is AudioTimeStamp.mSampleTime a float if it's an integer number of samples?
>>>>
>>>> Still curious why it's a Float64 in the first place. :)
>>>
>>> Who says there's an integer number of samples in a second, and not in say, 3 seconds? And how else would you represent the sample duration for a rate of, say, 17 samples per second?
>>
>>
>> Forgive me since it's already been a few months since I was knee deep in Core Audio, but …
>>
>>
>> That's what mSampleRate is for not, mSampleTime. mSampleTime is the "n" in "the nth sample."
>>
>>
>> For example:
>>
>> memset(&timeStamp, 0, sizeof(timestamp));
>> timestamp.mSampleTime = 0;
>> timestamp.mFlags = kAudioTimeStampSampleTimeValid;
>>
>> for (int sampleIndex = 0; sampleIndex < 44100; sampleIndex += 512) {
>> ...
>> timestamp.mSampleTime = (Float64)sampleIndex;
>> AudioUnitRender(outputUnit, &actionFlags, ×tamp, 0, 512, audioBufferList);
>> ...
>> }
>>
>>
>> AFAICT it's always an integer value.
>>
>>
>> --
>> Seth Willits
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Thu, 07 Feb 2013 18:21:04 +1300
> From: Daniel Too <email@hidden>
> To: email@hidden
> Subject: Recording from remoteIO on iOS
> Message-ID:
> <CAPcZQfOgd5NxVqMx-xmiqLZeGwdgGnGpU_xHjfkAwZojr=email@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi everyone,
>
>
> I've been playing with the Momu toolkit to create some music on iPhone. It
> uses a single Audio Unit remoteIO and a render callback to do all of the
> work.
>
> I'd like to record the output to a file in addition to outputting it
> through the iPhone output.
>
> At the moment, the ASBD going into the output is
>
> Sample Rate: 22050
>
> Format ID: lpcm
>
> Format Flags: kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked |
> kAudioFormatFlagIsNonInterleaved | (24 <<
> kLinearPCMFormatFlagsSampleFractionShift);
>
> Bytes per Packet: 4
>
> Frames per Packet: 1
>
> Bytes per Frame: 4
>
> Channels per Frame: 2
>
> Bits per Channel: 32
>
> I've tried lots of different ways to approach this, but I don't think I'm
> doing it correctly.
>
> How can I output this to a file? Can I use a recording callback on the
> output of the audio unit? How do I change the format of the data into
> something that I can write?
>
>
> Thanks
>
> Dan.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/coreaudio-api/attachments/20130207/75a34ff8/attachment.html>
>
> ------------------------------
>
> Message: 9
> Date: Thu, 07 Feb 2013 13:48:58 +0100
> From: Vojtěch Meluzín <email@hidden>
> To: email@hidden
> Subject: kAudioUnitProperty_Latency not working in Logic
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> Hi, I'm using this code to notify the host about change of latency of a
> plugin:
>
> AudioUnitEvent e;
> e.mArgument.mProperty.mAudioUnit = Instance;//GetComponentInstance
> ();
> e.mArgument.mProperty.mPropertyID = kAudioUnitProperty_Latency;
> e.mArgument.mProperty.mScope = kAudioUnitScope_Global;
> e.mArgument.mProperty.mElement = 0;
> e.mEventType = kAudioUnitEvent_PropertyChange;
> AUEventListenerNotify (paramListenerRef, NULL, &e);
>
> Unfortunately it works only in a few hosts, excluding Logic as usual. What
> is wrong? It doesn't work if paramListenerRef is NULL nor if I create it
> like this:
>
> AUListenerCreate (paramChangedListenerProc, plugin, CFRunLoopGetCurrent (),
> kCFRunLoopDefaultMode, 0.2, &plugin->paramListenerRef);
>
> Thanks in advance,
> Vojtech
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/coreaudio-api/attachments/20130207/1b4e3f43/attachment.html>
>
> ------------------------------
>
> Message: 10
> Date: Thu, 07 Feb 2013 08:52:07 -0500
> From: Paul Davis <email@hidden>
> To: Vojtěch Meluzín <email@hidden>
> Cc: CoreAudio API <email@hidden>
> Subject: Re: kAudioUnitProperty_Latency not working in Logic
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> One thing I can tell you as a host writer is that neither Ardour or Mixbus
> listens to plugin latency property changes. We pick up plugin latency by
> asking the plugin for the value, but only at times when we can actually do
> something about it.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/coreaudio-api/attachments/20130207/4b55a505/attachment.html>
>
> ------------------------------
>
> _______________________________________________
> Coreaudio-api mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/coreaudio-api
>
> End of Coreaudio-api Digest, Vol 10, Issue 49
> *********************************************
_______________________________________________
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