Comments (8)
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.
@dmrschmidt and What's about Last Stripe Round cap not showing
i will share mp3 file link letter Here
from dswaveformimage.
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.
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.
i will share mp3 file link letter Here
Any update on this?
from dswaveformimage.
6361f60195c97c3373483a47.mp3.zip
@dmrschmidt Can you check this audio File it's not working
from dswaveformimage.
A look at the file header reveals that this is, in fact, not an mp3 file.
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.
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.
from dswaveformimage.
Related Issues (20)
- xcode 15 not support. Stored properties cannot be marked unavailable with '@available' HOT 1
- Striped style with gradient HOT 2
- Stored properties cannot be marked unavailable with '@available' HOT 3
- Stored properties cannot be marked unavailable with '@available' HOT 1
- Thread 1: EXC_BAD_ACCESS (code=2, address=0x2829857c4) HOT 1
- WaveForm Flickering HOT 2
- Extra argument position in call error in MacOS HOT 1
- I need to show loader till complete image generating from audio URL. HOT 2
- Update version in cocoapod HOT 2
- crash in iOS 17 HOT 10
- Error on macOS HOT 7
- WaveformLiveCanvas with live floats from AVAudioPCMBuffer.floatChannelData always indicating max volume, not showing silence HOT 7
- Can't Run Example HOT 3
- LTR Support HOT 1
- Getting crash While entering foreground from background HOT 23
- unable to create wave view with audio server url HOT 1
- Stored properties cannot be marked unavailable with '@available' HOT 4
- Android alternative HOT 1
- Support for stereo/multiple channels HOT 1
- Support for older versions of macOS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dswaveformimage.