1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-16 15:41:11 +02:00
Commit Graph

602 Commits

Author SHA1 Message Date
Paul Licameli
d4ffbe0d68 Group setting path & default value arguments of Tie...() functions 2019-11-28 13:26:23 -05:00
Paul Licameli
e4e6e0a03a Make sure to translate certain strings in ExportMP3 rewrite 2019-11-27 21:43:02 -05:00
Paul Licameli
87a9e7ccbb Use global ChoiceSettings variables, not coincidental string literals 2019-11-27 13:38:17 -05:00
Paul Licameli
9b41741074 Remove an overload of TieChoice; use more ChoiceSetting instead...
... this also corrects some mis-specifications of the default choice, formerly
by string instead of array position
2019-11-27 13:38:16 -05:00
Paul Licameli
087ac5e6c9 Change one overload of TieChoice to expect un-translated strings...
... preparatory to removing that overload.

This overload is used in exactly these files:

DevicePrefs.cpp (displaying host names retrieved by portaudio, which are not
defined in Audacity source)

EffectsPrefs.cpp

ExportFLAC.cpp (twice)

ExportMultiple.cpp (displaying the descriptions defined in the several export
plugin classes)

GUIPrefs.cpp (four times: languages, manual location, theme, and meter DB
range; the language names themselves don't have localizations!)

MidiIOPrefs.cpp (displaying host names retrieved by portmidi)

TracksBehaviorsPrefs.cpp (for solo button choices)

There is also TieNumberAsChoice, used in QualityPrefs and elsewhere, which
calls through to that overload.
2019-11-27 13:38:16 -05:00
Paul Licameli
5638d6844f Eliminate an overload of TieChoice...
... with one exception (/FileFormats/FFmpegAACProfile),
the calls are replaced with TieNumberAsChoice.

Some unfortunately repetitious string tables are a small price in exchange for
reduced confusion in ShuttleGui.cpp

Untranslated strings are passed to TieNumberAsChoice, which is wrong, but that
will be made right in the next commit when we change the implementation of that
function
2019-11-27 13:38:16 -05:00
Paul Licameli
e008a44022 Pass ChoiceSetting to StartRadioButtonGroup...
... and we don't need to pass strings to TieRadioButton.

This removes some repetition of string literals in import/export, which is
good too.
2019-11-27 13:37:25 -05:00
Paul Licameli
51115903d4 Remove uses of overload of TieRadioButton taking int values...
... and migrate old preferences with EnumSetting
2019-11-27 13:37:24 -05:00
Paul Licameli
e485afa156 enums not #defines in ExportMP3.cpp 2019-11-27 13:37:23 -05:00
Paul Licameli
bbaceba347 Register export plugins, breaking cycles...
... as we did last relase for import; making several header files unnecessary.

This breaks up a strongly connected component of 9, which was the largest
remaining.  Now the largest remaining is 5.
2019-11-27 13:33:28 -05:00
James Crook
cabe925ab7 Make exporting of Soloed Tracks WY(S/H)IWYG
Now the export (should) exactly match the (selected) non greyed out tracks.
i.e. what you see and hear is what you export - no matter which mode of
mute/solo you choose.

This is now applied not just to export but also to export multiple.
2019-09-08 14:22:40 +01:00
Jonatã Bolzan Loss
a77a3ab2ac Fix exporting soloed track 2019-09-05 17:57:57 -03:00
James Crook
844778797a Bug 46 - GSM 6.10 files cannot be exported - failure messages are unhelpful un-illuminating 2019-09-01 13:15:13 +01:00
James Crook
1a49d0a812 Bug 59 - Residual. MP2 exporting is broken. So disable it.
This fix also allows for reporting illegal combinations on OK.  However, we don't yet need to use that feature, as the dialog now prevents illegal combinations EVEN when you use 'Show all Codecs'
2019-09-01 13:13:20 +01:00
James Crook
fe3a866117 Bug 2077 - Residual: Original code was correct for Windows
If new code is used on windows, we get an assert.
2019-08-30 19:00:37 +01:00
Paul Licameli
7149d8fcf9 Bug2077: FFmpeg custom options sub-modal dialog should appear foremost 2019-08-28 11:54:17 -04:00
James Crook
089a7ec166 Bug 59 - No error reported to user and crash when FFmpeg attempts invalid custom export of WAV with mp2 codec
If one selects fmt wav in FFmpeg options, only legal exports are now available.
2019-08-28 13:14:14 +01:00
James Crook
c32b92c377 Bug 2199 - crash after attempting to export as OGG at very high sample rate 2019-08-24 19:13:05 +01:00
James Crook
da5d049fa0 Bug 2200 - Uncompressed exports in formats that have no (realistic) size restriction fail the 4GB trap for WAV & AIFF 2019-08-17 15:09:06 +01:00
Jonatã Bolzan Loss
6e5437587b Bug 1904 - Audio offset not honored in Export/Export Multiple/Export Selection 2019-08-17 11:24:15 +01:00
Paul Licameli
aac2b7d825 Revert "Register export plugins, as we did for import, breaking cycles..."
This reverts commit 317f532dcb.
2019-07-29 15:43:22 -04:00
Paul Licameli
317f532dcb Register export plugins, as we did for import, breaking cycles...
... and making several header files unnecessary
2019-07-29 15:41:11 -04:00
Paul Licameli
040db4aecb Remove incorrect comment 2019-07-29 15:41:10 -04:00
James Crook
2b15aa28ca Bug 2178 - Export to (external program) fails with errors [WINDOWS]
This fixes the problem on Windows that if a user does not specify a suffix then
ffmpeg does not know what format to use and gives a cryptic error message,
if exporting using

ffmpeg -i - "filename"

Now, if no suffix is given, .wav is appended in the command sent to ffmpeg.
If a user gives a suffix, e.g. 'myfile.wma' then no suffix is added.
2019-07-28 15:57:48 +01:00
Paul Licameli
f89d96a870 spellings 2019-07-26 11:42:48 -04:00
Paul Licameli
7dd2e0244c Remove an #include 2019-07-23 14:42:16 -04:00
James Crook
b76ff54756 Bug 1180 - Residual: Help link should not use #presets anchor 2019-07-21 16:07:27 +01:00
James Crook
f9e58e5b4b Bug 1302 - Metadata Editor should be disabled for (external program) in Export Multiple, as in straight export 2019-07-17 18:59:23 +01:00
James Crook
f5efb17046 Bug 344 - Tweak slider label and range for FFmpeg M4A quality.
- Set range to 98 to 320.
- Show (kbps) after 'Quality'.
2019-07-15 16:41:29 +01:00
James Crook
a8d864ea9f Bug 344 - More intuitive Ffmpeg Quality slider.
Now the slider is requested bit-rate for both stereo and mono.
e.g. max 160 kbps for mono, 320 kbps for stereo.

Previously it was the requested per-channel bit-rate.
2019-07-15 14:21:39 +01:00
James Crook
6eb612bb73 Bug 344 - FFmpeg: M4A Quality slider has no control of bitrate setting or AAC quality 2019-07-15 13:10:34 +01:00
James Crook
53eb72103d Bug 2099 - 24-bit WAV (and AIFF) export is wrongly limited to 3GB
Bug 2100 - AIFF exports GT 4GB are trapped but error message is only "WAV"
2019-07-15 11:38:24 +01:00
James Crook
1f6e4ce037 Bug 1180 - Custom FFmpeg Export: an empty presets list can be Exported
Also added help button, per 1180 comments.
2019-07-15 10:52:22 +01:00
Paul Licameli
7e1c469d7f Remove some unnecessary #include directives 2019-07-09 12:45:50 -04:00
Paul Licameli
8db51416bc Lower DoEditMetadata into Exporter 2019-06-25 00:14:53 -04:00
Paul Licameli
291bd7258f Track.cpp does not depend directly on its subclasses 2019-06-12 11:14:19 -04:00
Paul Licameli
46bf5a82fc Don't pass whole TimeTrack to Ruler or Mixer...
... they need only the information in a (Bounded)Envelope.
2019-06-10 20:48:38 -04:00
Paul Licameli
1dce507aaf Avoid repetition in computing arguments for export mixers 2019-06-10 20:48:37 -04:00
Paul Licameli
2f9322e7f7 Fixes for Windows build and run-time problems suggested by Pokechu22 2019-06-05 07:24:01 -04:00
Paul Licameli
4f940c855d New files for ProjectWindow 2019-06-03 01:43:26 -04:00
Paul Licameli
05efeeb5bd New files for ProjectSettings 2019-06-03 01:13:13 -04:00
Paul Licameli
dd10e00a2d New attached structure ProjectSettings stores rate, snap-to, et al. 2019-06-02 14:42:00 -04:00
Paul Licameli
b25d3ad344 Limit access to global array of open projects & simplify iterations 2019-05-30 01:55:25 -04:00
Paul Licameli
82663892dc Accessors to get the project window...
... as a preparation for splitting up class AudacityProject.

Use ProjectWindow as an alias for AudacityProject, and fetch it from the
project with a static member function, where certain of its services are used;
pretending they are not the same class.

Use global accessor functions to get wxFrame from the project where only
wxFrame's member functions are needed, so there will be less dependency on
ProjectWindow when it becomes a distinct class.
2019-05-28 23:18:13 -04:00
Paul Licameli
68e25f3b7d static SelectionState::Get()...
... not member functions of AudacityProject
2019-05-23 14:11:05 -04:00
Paul Licameli
c1c0030013 static Tags::Get...
... not member functions of AudacityProject
2019-05-23 14:08:09 -04:00
Paul Licameli
805af452a4 static DirManager::Get()...
... not member functions of AudacityProject

This puts DirManager.cpp and four others back into the big strongly connected
component of link dependencies.  They will break out again when Project.cpp
becomes a low-level file.
2019-05-23 13:10:19 -04:00
Paul Licameli
14ab93a01f static TrackList::Get()...
... not member function of AudacityProject
2019-05-23 12:58:47 -04:00
Paul Licameli
d5b2507af9 Remove unneeded inclusions of Project.h, no cycles broken 2019-05-22 10:02:24 -04:00
Paul Licameli
f86403378b Move AudacityMessageBox to its own files...
... breaking cycles among low-level files introduced by 273ba9f
2019-05-20 14:48:36 -04:00