cog/Audio
Christopher Snowhill f7dc6beda1 Plugin utilities: Moved encoding guesser to header
Moved the string encoding guesser/converter to the Plugin.h header, so
it may be accessible from any plugin. I may make it a global member of
something eventually, but a static inline for such a simple function
should be fine for now.

This function facilitates converting arbitrary 8 bit encoded strings to
Unicode NSString objects. It should be used anywhere that UTF-8 is
expected, but not necessarily guaranteed, and where other 8-bit
encodings may also be supplied by a user's files.

Not using this setup for string inputs has already led to failed UTF-8
decoding resulting in nil NSStrings being passed to the inline array or
dictionary initializers, which results in crashes due to uncaught
exceptions.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-05-24 01:05:43 -07:00
..
Chain Resampler: Fix gapless output 2022-03-05 20:40:18 -08:00
CogAudio.xcodeproj Cog Audio: Sanitize search paths 2022-03-06 03:50:01 -08:00
Output Core Audio Output: Add extra safety checks 2022-03-08 00:00:34 -08:00
ThirdParty Resampler: Fix gapless output 2022-03-05 20:40:18 -08:00
Utils Add bad sample cleaner for debugging 2022-02-15 22:48:47 -08:00
Visualization Fix visualization for variable audio block sizes 2022-02-16 21:54:55 -08:00
AudioContainer.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioContainer.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioDecoder.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioDecoder.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioMetadataReader.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioMetadataReader.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioMetadataWriter.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioMetadataWriter.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioPlayer.h Add option to quit on natural stop 2022-02-21 20:55:42 -08:00
AudioPlayer.m Add option to quit on natural stop 2022-02-21 20:55:42 -08:00
AudioPropertiesReader.h CUE Reader: Fix enumerating sheets and tag reading 2022-02-13 12:18:58 -08:00
AudioPropertiesReader.m CUE Reader: Fix enumerating sheets and tag reading 2022-02-13 12:18:58 -08:00
AudioSource.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
AudioSource.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
CogAudio_Prefix.pch Fix some more warnings. 2021-01-27 05:12:07 +03:00
CogPluginMulti.h Now properly supports sample format changing 2022-02-07 19:18:45 -08:00
CogPluginMulti.m CogDecoderMulti: Reset file even if not seekable 2022-02-09 13:44:04 -08:00
Helper.h Volume control: Make preamp optional, defaulting to a limit of 100% volume 2022-01-17 22:41:26 -08:00
Helper.m Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
Info.plist Updated everything else to ARC, and plugged a release cycle. 2016-05-05 13:05:39 -07:00
Plugin.h Plugin utilities: Moved encoding guesser to header 2022-05-24 01:05:43 -07:00
PluginController.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00
PluginController.mm Info.plist generator: Update with default icons 2022-04-21 14:22:43 -07:00
Status.h Reformat my own source code with clang-format 2022-02-06 21:49:27 -08:00