src/rfxgen.c
// Show dialog: save sound parameters file
Show dialog: save sound parameters file
Show dialog : save sound parameters file
static void DialogSaveSound(WaveParams params)
{
    const char *filters[] = { "*.rfx" };
    const char *fileName = tinyfd_saveFileDialog("Save sound parameters file", "sound.rfx", 1, filters, "Sound Param Files (*.rfx)");
    if (fileName != NULL)
    {
        char outFileName[128] = { 0 };
        strcpy(outFileName, fileName);
        if ((GetExtension(outFileName) == NULL) || !IsFileExtension(outFileName, ".rfx")) strcat(outFileName, ".rfx\0");
        SaveWaveParams(params, outFileName);
    }
}
static void DialogSaveSound ( WaveParams params ) { const char * filters [ ] = { " " } ; const char * fileName = tinyfd_saveFileDialog ( " " , " " , 1 , filters , " " ) ; if ( fileName != NULL ) { char outFileName [ 128 ] = { 0 } ; strcpy ( outFileName , fileName ) ; if ( ( GetExtension ( outFileName ) == NULL ) || ! IsFileExtension ( outFileName , " " ) ) strcat ( outFileName , " \0 " ) ; SaveWaveParams ( params , outFileName ) ; } }
Show dialog: save sound parameters file
Show dialog : save sound parameters file
// Save file dialog // Check for valid extension and make sure it is // Save wave parameters