Giter VIP home page Giter VIP logo

Comments (8)

dmrschmidt avatar dmrschmidt commented on May 25, 2024

This sounds like an issue with the mp3 file itself.

see #52 (comment)

there’s a lot of audio tools out there that create invalid audio data.

If you can confirm that opening the file with a different audio tool shows different behavior, I can investigate further if you upload the mp3 somewhere.

from dswaveformimage.

jigneshchovatiya avatar jigneshchovatiya commented on May 25, 2024

@dmrschmidt and What's about Last Stripe Round cap not showing

i will share mp3 file link letter Here

from dswaveformimage.

dmrschmidt avatar dmrschmidt commented on May 25, 2024

Ah I didn’t notice that at first. That surely is not how it’s supposed to be. And it’s a separate issue from the mp3 file.

I’ll have a look. Is this SwiftUI? What phone / simulator / device are you running this on?

from dswaveformimage.

jigneshchovatiya avatar jigneshchovatiya commented on May 25, 2024

Ah I didn’t notice that at first. That surely is not how it’s supposed to be. And it’s a separate issue from the mp3 file.

I’ll have a look. Is this SwiftUI? What phone / simulator / device are you running this on?

It's .m4a file not mp3 , it's swift not SwiftUI , iphone13 Pro , Simulator iPhone 14

from dswaveformimage.

dmrschmidt avatar dmrschmidt commented on May 25, 2024

i will share mp3 file link letter Here

Any update on this?

from dswaveformimage.

jigneshchovatiya avatar jigneshchovatiya commented on May 25, 2024

6361f60195c97c3373483a47.mp3.zip
@dmrschmidt Can you check this audio File it's not working

from dswaveformimage.

dmrschmidt avatar dmrschmidt commented on May 25, 2024

A look at the file header reveals that this is, in fact, not an mp3 file.

Screenshot 2023-10-04 at 15 46 49

Not exactly sure what format it is, but definitely not an mp3 file.

iOS uses a rather simplistic approach when loading a file. It simply looks at the file ending - in your case mp3. When it then tries to load that file, but it does not adhere to the actual mp3 file format, it fails to load.

That's what you are observing.

To fix the issue, please ensure to either

  • make sure you import valid mp3 files when using the .mp3 ending or
  • make sure you are using a valid file format which is supported by iOS and make sure to use the correct file ending

from dswaveformimage.

dmrschmidt avatar dmrschmidt commented on May 25, 2024

One more addition. I've run the file through MediaInfo and it appears to be in AMR format. Possibly from an online tool called SoundHandle or from an Android Device. The built-in iOS audio libraries do not appear to support that format out of the box. macOS can play it back when the ending is changed to .mp4, but they may be using some other means which are not supported in the same way.

I won't be able to support all different kinds of existing audio formats, so the solution remains the same. Ensure that the files you import are converted to a natively supported file format, which could be valid mp3 or aac among others.

Screenshot 2023-10-05 at 08 50 40

from dswaveformimage.

Related Issues (20)

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.