Coder Social home page Coder Social logo

pxsiriwave9's Introduction

Hey! Pranav here ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working as a Senior Technical Director at MetricStream
    • Building the next-generation of cross platform GRC Web & Mobile app experience
    • Focus on building generic and scalable infrastructure/platform which can be leveraged to build mobile apps using React Native
    • I open-source almost everything I develop and try to reply everyone needing help using my contributions
  • ๐Ÿ’ฌ Ask me about building scalable mobile apps, React/React Native
  • ๐Ÿ“ซ How to reach me: DMs on my GMAIL

pxsiriwave9's People

Contributors

prscms avatar prscx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pxsiriwave9's Issues

drawRect Memory Leak

on drawRect function, occurs memory leak
please add release functions.

CGPathRelease(path);
... ...
CGColorSpaceRelease(colorSpaceRef);
CGGradientRelease(gradient);

Hardcoded value in (void)updateWithLevel:(CGFloat)level method.

When called with normalizedPowerLevelFromDecibels, the value are not being changed.

-(void)targetMethod:(NSTimer *)timer  {
    // NSLog(@"Siri Timer Called");
    PXSiriWave *siriWave = [timer userInfo];
    [siriWave updateWithLevel: [self _normalizedPowerLevelFromDecibels:self.averagePowerForChannel1]];
}

Corresponding library method has hardcoded value and level value is never used.


- (void)updateWithLevel:(CGFloat)level {
    CGFloat speed = 0.1;
    if (fabs(self.amplitude - _intensity) < speed) {
        self.amplitude = _intensity;
    } else {
        if (self.amplitude < _intensity) {
            self.amplitude += speed;
        } else {
            self.amplitude -= speed;
        }
    }
    
    [self setNeedsDisplay];
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.