123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #pragma once
- #include "openmpt/all/BuildSettings.hpp"
- #include "Snd_defs.h"
- OPENMPT_NAMESPACE_BEGIN
- class CSoundFile;
- struct ModSample;
- struct ModChannel;
- namespace ctrlSmp
- {
- void ReplaceSample(ModSample &smp, void *pNewSample, const SmpLength newLength, CSoundFile &sndFile);
- bool UpdateLoopPoints(const ModSample &smp, CSoundFile &sndFile);
- bool ReverseSample(ModSample &smp, SmpLength start, SmpLength end, CSoundFile &sndFile);
- bool InvertSample(ModSample &smp, SmpLength start, SmpLength end, CSoundFile &sndFile);
- bool XFadeSample(ModSample &smp, SmpLength fadeLength, int fadeLaw, bool afterloopFade, bool useSustainLoop, CSoundFile &sndFile);
- enum StereoToMonoMode
- {
- mixChannels,
- onlyLeft,
- onlyRight,
- splitSample,
- };
- bool ConvertToMono(ModSample &smp, CSoundFile &sndFile, StereoToMonoMode conversionMode);
- bool SplitStereo(const ModSample &source, ModSample &left, ModSample &right, CSoundFile &sndFile);
- bool ConvertToStereo(ModSample &smp, CSoundFile &sndFile);
- }
- namespace ctrlChn
- {
- void ReplaceSample( CSoundFile &sndFile,
- const ModSample &sample,
- const void * const pNewSample,
- const SmpLength newLength,
- FlagSet<ChannelFlags> setFlags,
- FlagSet<ChannelFlags> resetFlags);
- }
- OPENMPT_NAMESPACE_END
|