• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting SampleHardwarePlugin to work for default device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting SampleHardwarePlugin to work for default device


  • Subject: Re: Getting SampleHardwarePlugin to work for default device
  • From: Alexis Zbik <email@hidden>
  • Date: Thu, 09 Aug 2012 10:22:35 +0200



2012/8/7 Stéphane Letz <email@hidden>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 07 Aug 2012 02:30:23 -0700 (PDT)
> From: Jared Sohn <email@hidden>
> To: email@hidden
> Cc: email@hidden
> Subject: Re: Getting SampleHardwarePlugin to work for default device
> Message-ID: <email@hidden">email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> On Tuesday, August 7, 2012 1:53:48 AM UTC-7, Stéphane Letz wrote:
>
>> Nope: only processes that use the CoreAudio API will load this plugin.
> Said differently the CoreAudio framework will load the plugin for you.
>
> Does every application that makes sound use the CoreAudio API?  I just ran
> iTunes and GarageBand and played some sound but my logging didn't show
> anything for either program.  Is there a particular application that I
> should try (I'll try googling for some CoreAudio sample programs in a
> moment.)

CoreAudio applications that are going to access your SampleHardwarePlugin at some point: GarageBand allows to explicitly select a given audi device, so you should see SampleHardwarePlugin in the device list and select it. And for iTunes, your SampleHardwarePlugin has to be selected as system default (using Audio Midi Setup tool for instance) so that iTunes will access it.

>
>> Hum... but how is your version of SampleHardwarePlugin going to handle the
> audio streams ? SampleHardwarePlugin is supposed to retrieve audio from the
> audio application and do something with it. I don't see how only changing
> the volume is going to work.
>
> As I mentioned in my original post, I have changed SampleHardwarePlugin to
> act as the default device.  I am hoping that I can have the code iterate
> over whichever audio streams already exist and retrieve the current state
> or allow changing it.

SampleHardwarePlugin sample does show its own audio stream / control structure, completely ad-hoc, not related to any real audio device.
>
> I am not absolutely sure if I am going about this the right way, but I know
> that what I want to do is possible.  Among other things, the 'Hear'
> application (http://www.prosofteng.com/products/hear.php) allows a user to
> change the volume separately for each process and the product includes a
> HAL plug-in, which I presume helps to enable this.
>


But your SampleHardwarePlugin will have to redirect the audio stream on a real device at some point, possibly changing the volume in the process.


But Hear Hardware Plugin doesn't show any device in the device list. I would like to know how it handles audio buffers from app.
I just know that Hear work with the Built-in Output (speakers and headphones).


 
Stéphane Letz



 

 _______________________________________________
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



--
Alexis ZBIK
Mac & Audio Developer

A-Volute
25, rue Corneille
59100, Roubaix, France

email@hidden


 _______________________________________________
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

References: 
 >Re: Getting SampleHardwarePlugin to work for default device (From: Stéphane Letz <email@hidden>)

  • Prev by Date: Re: Using MediaPlayback session category in a recording app: Ignore everything I just said
  • Next by Date: Re: Using MediaPlayback session category in a recording app: Ignore everything I just said
  • Previous by thread: Re: Getting SampleHardwarePlugin to work for default device
  • Next by thread: AU plugin doesn't receive keyboard events with Cocoa GUI
  • Index(es):
    • Date
    • Thread