• 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
SGGetChannelVolume Oddness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SGGetChannelVolume Oddness


  • Subject: SGGetChannelVolume Oddness
  • From: Olivier Lanctôt <email@hidden>
  • Date: Tue, 19 Apr 2005 17:48:01 -0400

Hello,

I'm using this method
ComponentResult SGGetChannelVolume (
   SGChannel    c,
   short        *volume );

the problem is that volume isn't a normal short int. The doc says it is

"A pointer to an integer that is to receive the volume setting of the
channel represented as a 16-bit, fixed-point number. The high-order 8
bits contain the integer part of the value; the low-order 8 bits
contain the fractional part. Volume values range from –1.0 to 1.0.
Negative values play no sound but preserve the absolute value of the
volume setting."

I'm a bit rusty in C... what would be that data type? how do I change
this to a float, and why don,t they use a float if it's -1.0 to 1.0?!

Thanks!

--
Olivier
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Category or Protocol? (objc newbie)
  • Next by Date: Feature suggestions for easier debugging of Cocoa Bindings.
  • Previous by thread: Re: ABPeoplePickerView: setting focus on the search field
  • Next by thread: Feature suggestions for easier debugging of Cocoa Bindings.
  • Index(es):
    • Date
    • Thread