• 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: Custom sub control type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom sub control type


  • Subject: Re: Custom sub control type
  • From: Jeff Moore <email@hidden>
  • Date: Wed, 27 Jul 2005 12:03:26 -0700

First off, 'togl' is the control type, not it's class. The class would be IOAudioToggleControl. You said you are creating the control with the subtype of 'metr'. So, I don't see the problem. I have code that does stuff like this and works just fine.

I imagine that you are querying the type and expecting to get what you set as the subtype. Can you post some code that illustrates what you are doing?

BTW, in order for this control to be exposed through the HAL, you will also need to write a HAL plug-in that conforms to the API in <CoreAudio/AudioDriverPlugIn.h>.

On Jul 27, 2005, at 7:50 AM, Fabian Renn wrote:

Hello list members,

i'm writing an audio driver for a usb high speed device ( See mail 'SPDIF audio in DVD Player' Vol 2 Issue 220 ). My device has an led level meter. The user can set the speed of the this led meter either to normal or to fast. I'd like to implement this function as a custom toggle audio control. I've created a custom sub-type 'metr'. I'd like to control this control from user space with core audio. Yet if i get the class of the audio object of my control it returns 'togl' instead of 'metr'. But for the mute control it returns 'mute'. Because i have more than one custom toggle control I'd somehow like to distinguish between them over its class type. So why i'm i getting the base class type 'togl' instead of the class type 'metr' ( unlike the mute control )? And is there a way i can distinguish between custom controls?

Greetings from Germany

Fabian Renn
_______________________________________________
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



--

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
References: 
 >Custom sub control type (From: Fabian Renn <email@hidden>)

  • Prev by Date: Re: Should I care about this error message?
  • Next by Date: Getting duration of an audio file
  • Previous by thread: Custom sub control type
  • Next by thread: Getting duration of an audio file
  • Index(es):
    • Date
    • Thread