Giter Club home page Giter Club logo

piano's People

Contributors

saoudrizwan 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  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  avatar  avatar

piano's Issues

Logo proposal

Hi,
I have read your work so I decided to creat a logo for you. I hope you like it and you want to use it. I can give you all the formats of the design free. If you want to make changes please specify.

Greetings

Playing sounds pauses Music apps playback

@saoudrizwan Playing sounds is pausing music app playbacks.
I tried turning on background audio play capability

Running this in didFinishLaunchingWithOptions

private func mixAudioWithOthers() {
        do {
            try AVAudioSession.sharedInstance()
                .setCategory(AVAudioSession.Category.playback,
                             mode: AVAudioSession.Mode.default,
                             options: [.mixWithOthers])
        } catch {
            Log.error(Emoji.warning)
        }
    }

Then playing audio like this

public func Play(_ keynote: Keynote) {
    try? AVAudioSession.sharedInstance().setActive(true)
    Piano.play(keynote.note) {
        try? AVAudioSession.sharedInstance().setActive(false)
    }
}

No luck..:(

What can I do?

Can't stop file playing

I have loaded an mp3 using the following command.

๐ŸŽน.play([.sound(.url(fileURL))])

This works fine and music plays.

However, attempting to cancel the mp3 playing fails. Nothing happens.

๐ŸŽน.cancel()

The file keeps playing.

Piano: release 1.8
Xcode Version 10.1 (10B61)
Swift 4.2.1
iPhone SE device

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.