Comments (4)
The issue here is the format. It needs to be IEEE instead of PCM for floating point.
from rfxgen.
@Antilurker77 I've been investigating this issue and it seems it fails in ExportWave()
and only for float 32bit data. For 8/16bit it seems to work ok. The related code that exports that data is provided by drwav
library:
drwav wav = { 0 };
drwav_data_format format = { 0 };
format.container = drwav_container_riff;
format.format = DR_WAVE_FORMAT_PCM;
format.channels = wave.channels;
format.sampleRate = wave.sampleRate;
format.bitsPerSample = wave.sampleSize;
void *fileData = NULL;
size_t fileDataSize = 0;
success = drwav_init_memory_write(&wav, &fileData, &fileDataSize, &format, NULL);
if (success) success = (int)drwav_write_pcm_frames(&wav, wave.frameCount, wave.data);
drwav_result result = drwav_uninit(&wav);
if (result == DRWAV_SUCCESS) success = SaveFileData(fileName, (unsigned char *)fileData, (unsigned int)fileDataSize);
drwav_free(fileData, NULL);
Maybe @mackron could know if there is any issue with the export? I'm attaching a zip with the sound.rfx
to regenerate the sound with rFXGen and also the sound exported as 8bit
, 16bit
and 32bit
wav files: sound.zip.
EDIT: Tested against dr_wav
v0.13.4 - 2021-12-08
from rfxgen.
@mackron Wow! Superfast answer! Thank you very much! :D
from rfxgen.
Reviewed in raylib commit raysan5/raylib@58f2bf4
from rfxgen.
Related Issues (20)
- Build instruction ? HOT 7
- [File System] Case sensitivity in file names HOT 2
- Black screen when opened on Linux HOT 29
- App crash when Delta Slide value is less than 0 and Min Frequency value is greater than 0.30 (100% reproducible) HOT 8
- User interface is tiny on high dpi screens HOT 1
- Segmentation fault when trying to export wave HOT 7
- Mutate does not refresh seed on use - causing converging behavior HOT 1
- Trying to export a .wav without the extension doesn't save anything HOT 1
- implicit declaration of function 'tinyfd_saveFileDialog' is invalid in C99 when compiling from source on macos HOT 4
- make the app accessible for screen readers HOT 1
- Keybinds for switching save slots? HOT 2
- .sfs file not loading correctly in rfxgen HOT 2
- 2x screen size toggle makes the bottom text appear off-screen HOT 5
- Ability to right-click a slider to reset it back to the original point HOT 4
- Error while building on Linux HOT 1
- Root cause of sound effect difference between rfxgen and sfxr? HOT 3
- Undo/redo? HOT 1
- Random crash on macOS (arm64) HOT 16
- Zoomed in UI makes tooltips and the report issue window inaccessible HOT 2
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 rfxgen.