Giter Site home page Giter Site logo

8fdafs2 / flutter_raw_sound Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 12.0 90 KB

A flutter plugin for playing raw PCM audio data (16-bit integer and 32-bit float).

License: Apache License 2.0

Swift 32.46% Kotlin 29.39% Ruby 4.38% Objective-C 0.08% Dart 33.69%

flutter_raw_sound's People

Contributors

8fdafs2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_raw_sound's Issues

iOS 14 requirement

What's driving the iOS 14 requirement? What would it take to drop it down to iOS 12?

Initialize with numChannels = 2 fails to start

Hi,

With numChannels = 1 works properly, with 2 channels doesn't work (app force quits on start)

I'm using iOS

2022-05-22 17:10:04.362773+0300 Runner[81257:7424991] [avae] AVAEInternal.h:130 [AUInterface.mm:536:SetFormat: ([[busArray objectAtIndexedSubscript:(NSUInteger)element] setFormat:format error:&nsErr])] returned false, error Error Domain=NSOSStatusErrorDomain Code=-10868 "(null)"
2022-05-22 17:10:04.364648+0300 Runner[81257:7424991] *** Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: '[[busArray objectAtIndexedSubscript:(NSUInteger)element] setFormat:format error:&nsErr]: returned false, error Error Domain=NSOSStatusErrorDomain Code=-10868 "(null)"'

GeneratedPluginRegistrant.m: "Module 'raw_sound' not found"

First time trying to use this plugin, thanks for making it!!

Not sure where to start with this issue.

/Volumes/User/MBP/flutter_test_app/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'raw_sound' not found
@import raw_sound;
 ~~~~~~~^~~~~~~~~
1 error generated.

Screen Shot 2022-02-17 at 3 48 49 PM

pubspec.yaml

...

dependencies:
flutter:
sdk: flutter

cupertino_icons: ^1.0.2
raw_sound: ^0.3.0+1

...

Set Volume doesn't work on iOS

When using the setVolume function for a RawSoundPlayer in iOS, I'm getting this error that crashes the app:

"Foundation/NSNumber.swift:467: Fatal error: Unable to bridge NSNumber to Float"

I went into the swift files and changed the volume Float's to NSNumbers, but for me, it's stopping the output of my player.

Any idea on how to fix? Working fine on Android.

Best,

Will

Stop player immediately

How do I stop player, when buffer is not over?
When I stop the player, it continues to the end of the sequence and does not stop immediately.

getting error while building for ios

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
[!] CocoaPods could not find compatible versions for pod "raw_sound":
  In Podfile:
    raw_sound (from `.symlinks/plugins/raw_sound/ios`)

Specs satisfying the `raw_sound (from `.symlinks/plugins/raw_sound/ios`)` dependency were found, but they required a higher minimum deployment target.

Playing .wav file

Hi!

I'm trying to figure out how to play a .wav file (that I'm reading using "wav" package).

The issue is that "wav" gives sound data as Float64 List (actually two lists, for separate stereo channels). And raw_sound expects input as Uint8List. Do you have any idea on how to do that conversion?

Also, what should be the data size that "feed" method is looking for? Is there any way to determine it?

Thanks!

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.