SystemVolumeNativeExtension icon indicating copy to clipboard operation
SystemVolumeNativeExtension copied to clipboard

NaN for fetching systemVolume

Open yozef opened this issue 13 years ago • 4 comments

Love the ANE - Works well, though, while trying to fetch VolumeController.instance.systemVolume it is returning NaN.

yozef avatar Jun 20 '12 00:06 yozef

Does this only happen the first time you access it? I'm wondering if you're grabbing it before the plugin is initialized.

Joseph [email protected] wrote:

Love the ANE - Works well, though, while trying to fetch VolumeController.instance.systemVolume it is returning NaN.


Reply to this email directly or view it on GitHub: https://github.com/nweber/SystemVolumeNativeExtension/issues/2 Notice: This transmission is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged or confidential. Any dissemination, distribution or copying of this transmission by anyone other than the intended recipient is strictly prohibited. If you have received this transmission in error, please notify the sender immediately by e-mail or telephone and delete the original transmission. Thank you.

nweber avatar Jun 20 '12 00:06 nweber

Thanks for your reply,

I am fetching the systemVolume on the View's creation complete, and storing it. I have received the NaN by tracing VolumeController.instance.systemVolume; while debugging on the device.

On Tuesday, June 19, 2012 at 8:21 PM, nweber wrote:

Does this only happen the first time you access it? I'm wondering if you're grabbing it before the plugin is initialized.

Joseph <[email protected] (mailto:[email protected])> wrote:

Love the ANE - Works well, though, while trying to fetch VolumeController.instance.systemVolume it is returning NaN.


Reply to this email directly or view it on GitHub: https://github.com/nweber/SystemVolumeNativeExtension/issues/2 Notice: This transmission is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged or confidential. Any dissemination, distribution or copying of this transmission by anyone other than the intended recipient is strictly prohibited. If you have received this transmission in error, please notify the sender immediately by e-mail or telephone and delete the original transmission. Thank you.


Reply to this email directly or view it on GitHub: https://github.com/nweber/SystemVolumeNativeExtension/issues/2#issuecomment-6441453

yozef avatar Jun 20 '12 00:06 yozef

Try listening for volume change. I'm guessing it will trigger after you get the value. If that doesn't work please post reproduction steps. I am on vacation so I won't be able to look St it for two weeks.

Joseph [email protected] wrote:

Thanks for your reply,

I am fetching the systemVolume on the View's creation complete, and storing it. I have received the NaN by tracing VolumeController.instance.systemVolume; while debugging on the device.

On Tuesday, June 19, 2012 at 8:21 PM, nweber wrote:

Does this only happen the first time you access it? I'm wondering if you're grabbing it before the plugin is initialized.

Joseph <[email protected] (mailto:[email protected])> wrote:

Love the ANE - Works well, though, while trying to fetch VolumeController.instance.systemVolume it is returning NaN.


Reply to this email directly or view it on GitHub: https://github.com/nweber/SystemVolumeNativeExtension/issues/2 Notice: This transmission is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged or confidential. Any dissemination, distribution or copying of this transmission by anyone other than the intended recipient is strictly prohibited. If you have received this transmission in error, please notify the sender immediately by e-mail or telephone and delete the original transmission. Thank you.


Reply to this email directly or view it on GitHub: https://github.com/nweber/SystemVolumeNativeExtension/issues/2#issuecomment-6441453


Reply to this email directly or view it on GitHub: https://github.com/nweber/SystemVolumeNativeExtension/issues/2#issuecomment-6441505

nweber avatar Jun 20 '12 00:06 nweber

No worries... am able to use it for what I need at the moment :) Thanks though

On Tuesday, June 19, 2012 at 8:39 PM, nweber wrote:

Try listening for volume change. I'm guessing it will trigger after you get the value. If that doesn't work please post reproduction steps. I am on vacation so I won't be able to look St it for two weeks.

Joseph <[email protected] (mailto:[email protected])> wrote:

Thanks for your reply,

I am fetching the systemVolume on the View's creation complete, and storing it. I have received the NaN by tracing VolumeController.instance.systemVolume; while debugging on the device.

On Tuesday, June 19, 2012 at 8:21 PM, nweber wrote:

Does this only happen the first time you access it? I'm wondering if you're grabbing it before the plugin is initialized.

Joseph <[email protected] (mailto:[email protected])> wrote:

Love the ANE - Works well, though, while trying to fetch VolumeController.instance.systemVolume it is returning NaN.


Reply to this email directly or view it on GitHub: https://github.com/nweber/SystemVolumeNativeExtension/issues/2 Notice: This transmission is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged or confidential. Any dissemination, distribution or copying of this transmission by anyone other than the intended recipient is strictly prohibited. If you have received this transmission in error, please notify the sender immediately by e-mail or telephone and delete the original transmission. Thank you.


Reply to this email directly or view it on GitHub: https://github.com/nweber/SystemVolumeNativeExtension/issues/2#issuecomment-6441453


Reply to this email directly or view it on GitHub: https://github.com/nweber/SystemVolumeNativeExtension/issues/2#issuecomment-6441505


Reply to this email directly or view it on GitHub: https://github.com/nweber/SystemVolumeNativeExtension/issues/2#issuecomment-6442131

yozef avatar Jun 20 '12 00:06 yozef