Support QOA audio format on ExportWave()
-WIP-
This commit is contained in:
parent
901c4553d2
commit
589892af07
1 changed files with 12 additions and 0 deletions
12
src/raudio.c
12
src/raudio.c
|
@ -985,6 +985,18 @@ bool ExportWave(Wave wave, const char *fileName)
|
||||||
|
|
||||||
drwav_free(fileData, NULL);
|
drwav_free(fileData, NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#if defined(SUPPORT_FILEFORMAT_QOA)
|
||||||
|
else if (IsFileExtension(fileName, ".qoa"))
|
||||||
|
{
|
||||||
|
qoa_desc qoa = { 0 };
|
||||||
|
qoa.channels = wave.channels;
|
||||||
|
qoa.samplerate = wave.sampleRate;
|
||||||
|
qoa.samples = wave.frameCount;
|
||||||
|
|
||||||
|
// TODO: Review wave.data format required for export
|
||||||
|
success = qoa_write(fileName, wave.data, &qoa);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
else if (IsFileExtension(fileName, ".raw"))
|
else if (IsFileExtension(fileName, ".raw"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue