mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-03 17:39:25 +02:00
Added "WAV (Microsoft) float PCM" to the file types
This commit is contained in:
parent
6212da3e2d
commit
d8c8ee3076
@ -377,7 +377,18 @@ ExportPCM::ExportPCM()
|
|||||||
AddExtension(wavext,format);
|
AddExtension(wavext,format);
|
||||||
SetMaxChannels(si.channels - 1,format);
|
SetMaxChannels(si.channels - 1,format);
|
||||||
|
|
||||||
/* add GSM6.10 to list of formats at position 3 */
|
/* add WAV float at position 3 */
|
||||||
|
si.format = SF_FORMAT_WAV | SF_FORMAT_FLOAT;
|
||||||
|
for (si.channels = 1; sf_format_check(&si); si.channels++){};
|
||||||
|
format = AddFormat() - 1;
|
||||||
|
SetFormat(wxT("WAV"),format);
|
||||||
|
SetCanMetaData(true,format);
|
||||||
|
SetDescription(_("WAV (Microsoft) float PCM"),format);
|
||||||
|
// we sorted out wavext near the begining
|
||||||
|
AddExtension(wavext,format);
|
||||||
|
SetMaxChannels(si.channels - 1,format);
|
||||||
|
|
||||||
|
/* add GSM6.10 to list of formats at position 4 */
|
||||||
si.format = SF_FORMAT_WAV | SF_FORMAT_GSM610;
|
si.format = SF_FORMAT_WAV | SF_FORMAT_GSM610;
|
||||||
for (si.channels = 1; sf_format_check(&si); si.channels++){};
|
for (si.channels = 1; sf_format_check(&si); si.channels++){};
|
||||||
format = AddFormat() - 1;
|
format = AddFormat() - 1;
|
||||||
@ -423,7 +434,10 @@ int ExportPCM::Export(AudacityProject *project,
|
|||||||
case 2: // WAV
|
case 2: // WAV
|
||||||
sf_format = SF_FORMAT_WAV | SF_FORMAT_PCM_16;
|
sf_format = SF_FORMAT_WAV | SF_FORMAT_PCM_16;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3: // WAV (float)
|
||||||
|
sf_format = SF_FORMAT_WAV | SF_FORMAT_FLOAT;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
sf_format = SF_FORMAT_WAV | SF_FORMAT_GSM610;
|
sf_format = SF_FORMAT_WAV | SF_FORMAT_GSM610;
|
||||||
break;
|
break;
|
||||||
default: // land here if supplied a sub-format that we don't know about
|
default: // land here if supplied a sub-format that we don't know about
|
||||||
|
Loading…
x
Reference in New Issue
Block a user