Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggwave-from-file with empty results on non-48kHz files #107

Open
PhForty opened this issue Jan 29, 2024 · 0 comments
Open

ggwave-from-file with empty results on non-48kHz files #107

PhForty opened this issue Jan 29, 2024 · 0 comments

Comments

@PhForty
Copy link

PhForty commented Jan 29, 2024

When using the ggwave-to-file binary, there is a flag for changing the sample rate of the output, -s.
I would expect the corresponding ggwave-from-file binary to be able to work with the new sample rate. It does not though and produces empty results.
It appears from my superficial testing that ggwave-from-file only supports file sampled with 48kHz.
I don't understand why, because for example the file generated below contains only frequencies of below 10 kHz and no information is missing in the audio file itself, when its sampled at a lower rate.

What I did:

./ggwave-to-file -s44100 -fout.wav -> then typed "abc"
-/ggwave-from-file out.wav
The output looks like this:

Usage: ./ggwave-from-file audio.wav [-lN] [-d]
    -lN - fixed payload length of size N, N in [1, 64]
    -d  - use Direct Sequence Spread (DSS)

[+] Number of channels: 1
[+] Sample rate: 44100
[+] Bits per sample: 16
[+] Total samples: 47041
[+] Decoding .. 


[+] Done
@PhForty PhForty changed the title ggwave-from-file cannot comprehend non-48kHz files ggwave-from-file with empty results on non-48kHz files Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant