Home
last modified time | relevance | path

Searched refs:SAMPLEINDEX (Results 1 – 25 of 65) sorted by relevance

123

/dports/audio/libopenmpt/libopenmpt-0.6.0+release.autotools/soundlib/
H A DSndfile.h465 SAMPLEINDEX m_nSamples = 0;
791 const char *GetSampleName(SAMPLEINDEX nSample) const;
1144 bool DestroySample(SAMPLEINDEX nSample);
1145 bool DestroySampleThreadsafe(SAMPLEINDEX nSample);
1149SAMPLEINDEX GetNextFreeSample(INSTRUMENTINDEX targetInstrument = INSTRUMENTINDEX_INVALID, SAMPLEIN…
1170 bool ReadPATSample(SAMPLEINDEX nSample, FileReader &file);
1172 bool ReadSBISample(SAMPLEINDEX sample, FileReader &file);
1176 bool ReadXISample(SAMPLEINDEX nSample, FileReader &file);
1179 bool ReadIFFSample(SAMPLEINDEX sample, FileReader &file);
1180 bool ReadBRRSample(SAMPLEINDEX sample, FileReader &file);
[all …]
H A DSampleFormats.cpp240 const SAMPLEINDEX sourceIndex = sample; in ReadInstrumentFromSong()
287 bool CSoundFile::ReadSampleFromSong(SAMPLEINDEX targetSample, const CSoundFile &srcSong, SAMPLEINDE… in ReadSampleFromSong()
1070 SAMPLEINDEX nextSample = 0; in ReadPATInstrument()
1072 SAMPLEINDEX nMinSmp = 0; in ReadPATInstrument()
1250 SAMPLEINDEX maxSmp = 0; in ReadXIInstrument()
1348 for(SAMPLEINDEX i = 0; i < samples.size(); i++) in SaveXIInstrument()
1366 for(SAMPLEINDEX i = 0; i < samples.size(); i++) in SaveXIInstrument()
2322 SAMPLEINDEX smp = 0; in ReadITIInstrument()
2353 for(SAMPLEINDEX i = 0; i < nsamples; i++) in ReadITIInstrument()
2400 std::vector<SAMPLEINDEX> smptable; in SaveITIInstrument()
[all …]
H A DLoad_xm.cpp145 static std::vector<SAMPLEINDEX> AllocateXMSamples(CSoundFile &sndFile, SAMPLEINDEX numSamples) in AllocateXMSamples()
147 LimitMax(numSamples, SAMPLEINDEX(32)); in AllocateXMSamples()
149 std::vector<SAMPLEINDEX> foundSlots; in AllocateXMSamples()
152 for(SAMPLEINDEX i = 0; i < numSamples; i++) in AllocateXMSamples()
154 SAMPLEINDEX candidateSlot = sndFile.GetNumSamples() + 1; in AllocateXMSamples()
159 for(SAMPLEINDEX j = 1; j <= sndFile.GetNumSamples(); j++) in AllocateXMSamples()
814 SAMPLEINDEX mptSample = sampleSlots[sample]; in ReadXM()
1284 std::vector<SAMPLEINDEX> samples; in SaveXM()
1300 std::vector<SAMPLEINDEX> additionalSamples; in SaveXM()
1340 for(SAMPLEINDEX smp = 0; smp < samples.size(); smp++) in SaveXM()
[all …]
H A DModInstrument.h113 std::array<SAMPLEINDEX, 128> Keyboard; // Sample mapping, e.g. C-5 => Sample 1
125 ModInstrument(SAMPLEINDEX sample = 0);
128 void AssignSample(SAMPLEINDEX sample) in AssignSample()
181 std::set<SAMPLEINDEX> GetSamples() const;
H A DSndfile.cpp493 for(SAMPLEINDEX nSmp = 1; nSmp <= m_nSamples; nSmp++)
1367 SAMPLEINDEX unused = 0;
1399 SAMPLEINDEX n = pIns->Keyboard[p->note - NOTE_MIN];
1408 for (SAMPLEINDEX ichk = GetNumSamples(); ichk >= 1; ichk--)
1425 SAMPLEINDEX nRemoved = 0;
1426 …for(SAMPLEINDEX nSmp = std::min(GetNumSamples(), static_cast<SAMPLEINDEX>(keepSamples.size() - 1))…
1451 bool CSoundFile::DestroySample(SAMPLEINDEX nSample)
1825 SAMPLEINDEX smp = 0;
1832 smp = static_cast<SAMPLEINDEX>(instr);
1843 SAMPLEINDEX CSoundFile::GetNextFreeSample(INSTRUMENTINDEX targetInstrument, SAMPLEINDEX start) const
[all …]
H A DLoad_c67.cpp52 for(SAMPLEINDEX smp = 0; smp < 32; smp++) in ValidateHeader()
180 for(SAMPLEINDEX smp = 0; smp < 32; smp++) in ReadC67()
195 for(SAMPLEINDEX smp = 0; smp < 32; smp++) in ReadC67()
260 for(SAMPLEINDEX smp = 1; smp <= 32; smp++) in ReadC67()
H A DLoad_sfx.cpp111 SAMPLEINDEX numSamples = 0; in ProbeFileHeaderSFX()
141 for(SAMPLEINDEX smp = 0; smp < numSamples; smp++) in ProbeFileHeaderSFX()
195 for(SAMPLEINDEX smp = 0; smp < m_nSamples; smp++) in ReadSFX()
221 for(SAMPLEINDEX smp = 1; smp <= m_nSamples; smp++) in ReadSFX()
465 for(SAMPLEINDEX smp = 1; smp <= m_nSamples; smp++) if(Samples[smp].nLength) in ReadSFX()
H A DLoad_digi.cpp138 for(SAMPLEINDEX smp = 0; smp < 31; smp++) in ReadDIGI()
157 for(SAMPLEINDEX smp = 1; smp <= 31; smp++) in ReadDIGI()
222 for(SAMPLEINDEX smp = 1; smp <= 31; smp++) in ReadDIGI()
H A DLoad_s3m.cpp495 …m_nSamples = std::min(static_cast<SAMPLEINDEX>(fileHeader.smpNum), static_cast<SAMPLEINDEX>(MAX_SA… in ReadS3M()
498 for(SAMPLEINDEX smp = 0; smp < m_nSamples; smp++) in ReadS3M()
717 SAMPLEINDEX writeSamples = static_cast<SAMPLEINDEX>(GetNumInstruments()); in SaveS3M()
722 writeSamples = Clamp(writeSamples, static_cast<SAMPLEINDEX>(1), static_cast<SAMPLEINDEX>(99)); in SaveS3M()
777 for(SAMPLEINDEX smp = 0; smp < writeSamples; smp++) in SaveS3M()
974 for(SAMPLEINDEX smp = 0; smp < writeSamples; smp++) in SaveS3M()
976 SAMPLEINDEX realSmp = smp + 1; in SaveS3M()
980 for(SAMPLEINDEX keySmp : Instruments[smp]->Keyboard) in SaveS3M()
H A DLoad_ams.cpp417 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadAMS()
429 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadAMS()
498 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadAMS()
807 std::vector<SAMPLEINDEX> firstSample; // First sample of instrument in ReadAMS2()
879 const SAMPLEINDEX firstSmp = GetNumSamples() + 1; in ReadAMS2()
880 for(SAMPLEINDEX smp = 0; smp < numSamples; smp++) in ReadAMS2()
900 m_nSamples = static_cast<SAMPLEINDEX>(std::min(MAX_SAMPLES - 1, GetNumSamples() + numSamples)); in ReadAMS2()
989 for(SAMPLEINDEX smp = 0; smp < GetNumSamples(); smp++) in ReadAMS2()
1004 for(SAMPLEINDEX smp = 0; smp < GetNumSamples(); smp++) in ReadAMS2()
1013SAMPLEINDEX sourceSample = ((sampleSettings[smp] & sampleIndexMask) >> sampleIndexShift) + firstSa… in ReadAMS2()
H A DLoad_okt.cpp54 …ile.m_nSamples = std::min(static_cast<SAMPLEINDEX>(chunk.BytesLeft() / sizeof(OktSample)), static_… in ReadOKTSamples()
56 for(SAMPLEINDEX smp = 1; smp <= sndFile.GetNumSamples(); smp++) in ReadOKTSamples()
472 for(SAMPLEINDEX smp = 1; smp < m_nSamples; smp++) in ReadOKT()
H A DLoad_amf.cpp144 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadAMF_Asylum()
194 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadAMF_Asylum()
584 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadAMF_DSMI()
597 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadAMF_DSMI()
649 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples() && file.CanRead(1); smp++) in ReadAMF_DSMI()
652 for(SAMPLEINDEX target = 0; target < GetNumSamples(); target++) in ReadAMF_DSMI()
H A DLoad_stp.cpp95 SAMPLEINDEX looped;
96 SAMPLEINDEX nonLooped;
276 std::vector<SAMPLEINDEX> nonLooped; in ReadSTP()
279 SAMPLEINDEX samplesInFile = 0; in ReadSTP()
281 for(SAMPLEINDEX smp = 0; smp < fileHeader.numSamples; smp++) in ReadSTP()
283 SAMPLEINDEX actualSmp = file.ReadUint16BE(); in ReadSTP()
853 for(SAMPLEINDEX smp = 1; smp <= samplesInFile; smp++) if(Samples[smp].nLength) in ReadSTP()
H A DLoad_ptm.cpp180 …m_nSamples = std::min(static_cast<SAMPLEINDEX>(fileHeader.numSamples), static_cast<SAMPLEINDEX>(MA… in ReadPTM()
192 for(SAMPLEINDEX smp = 0; smp < m_nSamples; smp++) in ReadPTM()
H A DModInstrument.cpp139 ModInstrument::ModInstrument(SAMPLEINDEX sample) in ModInstrument()
232 std::set<SAMPLEINDEX> ModInstrument::GetSamples() const in GetSamples()
234 std::set<SAMPLEINDEX> referencedSamples; in GetSamples()
H A DLoad_mod.cpp797 for(SAMPLEINDEX smp = 1; smp <= 31; smp++) in ProbeFileHeaderMOD()
867 for(SAMPLEINDEX smp = 1; smp <= 31; smp++) in ReadMOD()
1189 for(SAMPLEINDEX smp = 1; smp <= 31; smp++) in ReadMOD()
1389 for(SAMPLEINDEX smp = 0; smp < 15; smp++) in ValidateHeader()
1504 for(SAMPLEINDEX smp = 1; smp <= 15; smp++) in ReadM15()
1832 for(SAMPLEINDEX smp = 1; smp <= 15; smp++) in ReadM15()
1863 for(SAMPLEINDEX smp = 1; smp <= 31; smp++) in ProbeFileHeaderICE()
1935 for(SAMPLEINDEX smp = 1; smp <= 31; smp++) in ReadICE()
2266 for(SAMPLEINDEX i = 1; i <= 31; i++) in SaveMod()
2273 for(SAMPLEINDEX smp = 1; smp <= 31; smp++) in SaveMod()
[all …]
H A DLoad_mus_km.cpp228 std::array<SAMPLEINDEX, 32> sampleMap{}; in ReadMUS_KM()
241 SAMPLEINDEX copyFrom = 0; in ReadMUS_KM()
242 for(SAMPLEINDEX srcSmp = 1; srcSmp <= m_nSamples; srcSmp++) in ReadMUS_KM()
H A DLoad_dbm.cpp348 …m_nSamples = std::min(static_cast<SAMPLEINDEX>(infoData.samples), static_cast<SAMPLEINDEX>(MAX_SAM… in ReadDBM()
639 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadDBM()
664 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadDBM()
681 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadDBM()
H A DLoad_imf.cpp123 void ConvertToMPT(ModInstrument &mptIns, SAMPLEINDEX firstSample) const in ConvertToMPT()
611 SAMPLEINDEX firstSample = 1; // first sample index of the current instrument in ReadIMF()
629 for(SAMPLEINDEX smp = 0; smp < instrumentHeader.smpNum; smp++) in ReadIMF()
634 const SAMPLEINDEX smpID = firstSample + smp; in ReadIMF()
H A DITTools.cpp119 SAMPLEINDEX ins = keyboard[i * 2 + 1]; in ConvertToMPT()
227 const SAMPLEINDEX smp = mptIns.Keyboard[i]; in ConvertToIT()
345 SAMPLEINDEX ins = keyboard[i * 2 + 1]; in ConvertToMPT()
379 const SAMPLEINDEX smp = mptIns.Keyboard[i]; in ConvertToIT()
426 mptIns.Keyboard[i] |= ((SAMPLEINDEX)keyboardhi[i] << 8); in ConvertToMPT()
H A DLoad_ult.cpp424 if(SAMPLEINDEX numSamples = file.ReadUint8(); numSamples < MAX_SAMPLES) in ReadULT()
429 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadULT()
501 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadULT()
H A DLoad_mtm.cpp147 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadMTM()
246 for(SAMPLEINDEX smp = 1; smp <= GetNumSamples(); smp++) in ReadMTM()
H A DLoad_669.cpp151 for(SAMPLEINDEX smp = 1; smp <= m_nSamples; smp++) in Read669()
320 for(SAMPLEINDEX n = 1; n <= m_nSamples; n++) in Read669()
H A DXMTools.cpp96 std::vector<SAMPLEINDEX> XMInstrument::GetSampleList(const ModInstrument &mptIns, bool compatibilit… in GetSampleList()
98 std::vector<SAMPLEINDEX> sampleList; // List of samples associated with this instrument in GetSampleList()
104 const SAMPLEINDEX smp = mptIns.Keyboard[i + 12]; in GetSampleList()
/dports/audio/libopenmpt/libopenmpt-0.6.0+release.autotools/doc/
H A Dopenmpt_styleguide.md16 * Generally make use of the custom index types like `SAMPLEINDEX` or

123