biner88 / metronome

Efficient, accurate, cross-platform metronome; supports volume, BPM, and audio source settings.
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

The sound coming out is corrupted #13

Closed ramaswag closed 2 weeks ago

ramaswag commented 3 months ago

The sound is very very noisy and you can't almost hear the original sound. The problem is for sure not the sample, as it is clean and also if I change the file I get the same result.

biner88 commented 3 months ago

Are you using the sound file from the example?

ramaswag commented 3 months ago

No

On Sun, Jul 14, 2024, 08:01 biner88 @.***> wrote:

Are you using the sound file from the example?

— Reply to this email directly, view it on GitHub https://github.com/biner88/metronome/issues/13#issuecomment-2227206623, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXAPPLC2KHHZAK6FEUVPAILZMIHZ7AVCNFSM6AAAAABKW4L6XGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXGIYDMNRSGM . You are receiving this because you authored the thread.Message ID: @.***>

biner88 commented 3 months ago

Sound files are specially processed. You can refer to the file parameters in the example to re-edit your file. For example, SAMPLE RATE = 44100

ramaswag commented 3 months ago

Ahh ok I see, thanks 🙏

On Sun, Jul 14, 2024, 08:46 biner88 @.***> wrote:

Sound files are specially processed. You can refer to the file parameters in the example to re-edit your file.

— Reply to this email directly, view it on GitHub https://github.com/biner88/metronome/issues/13#issuecomment-2227215922, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXAPPLDQGG7ZWB3F5OQELVLZMINDDAVCNFSM6AAAAABKW4L6XGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXGIYTKOJSGI . You are receiving this because you authored the thread.Message ID: @.***>

manudicri commented 3 months ago

Hi, I've been using my metronome on iOS for a while with no problems. But I've tried today on Android and it seems that @ramaswag is right, the sound is noisy and distorted, unlike on iOS.

iOS: https://github.com/user-attachments/assets/f643923b-9ae2-409d-9c4d-e918367cdbbd

Android: https://github.com/user-attachments/assets/9fa4489c-459b-4254-b7c9-93eebc826f11

What should we do to fix it?

biner88 commented 3 months ago

@manudicri Is the same true for examples?

manudicri commented 2 months ago

Hi @biner88 I haven't tried yet. Anyway, I think you can reopen this issue since the problem is there on Android. Just like the video I attached. My audio file is a .WAV, 44,1khz 32bit. I got to try with other audio files as soon as I can.

Thanks Manu

biner88 commented 2 months ago

You can try the audio file provided by the sample, I tested it fine on multiple Android devices. You can upload your audio file here and I'll test it.

manudicri commented 2 months ago

Hi, I noticed that the .wav file in the sample repository has its 'encoding' field set to 'Microsoft PCM', whereas my .wav file is encoded as 'Microsoft IEEE'. This seems to be causing issues when playing the file on Android. I converted the file to PCM encoding, which resolved the issue in the Android simulator. I will test it on a real device and update you on the results.

This is my final audio file: https://drive.google.com/file/d/1ocH7dwRNG0nUxZAcQZVzCcM-m9NjqFw4/view?usp=share_link

Thank you Manu

manudicri commented 1 month ago

Working fine. You can close this issue. Thank you