Searched refs:samples (Results 1 - 25 of 51) sorted by relevance

123

/haiku/src/tests/add-ons/mail/imap/
H A Drfc3501_encoding_test.cpp26 const char* samples[] = { local
33 for (size_t i = 0; i < sizeof(samples) / sizeof(samples[0]); i += 2) {
34 BString encoded = encoding.Encode(samples[i]);
35 assertEquals(samples[i + 1], encoded);
37 assertEquals(samples[i], decoded);
/haiku/src/apps/mediaplayer/media_node_framework/audio/
H A DSampleBuffer.h30 inline void operator+=(int samples) { argument
31 fBuffer += samples;
33 inline void operator-=(int samples) { argument
34 fBuffer -= samples;
44 inline void* operator+(int samples) { argument
45 return fBuffer + samples;
47 inline void* operator-(int samples) { argument
48 return fBuffer + samples;
H A DAudioVolumeConverter.cpp25 convert(SampleType* buffer, const int32 samples, const float volume, argument
28 for (int32 i = 0; i < samples; i++) {
99 int32 samples = frames * channelCount; local
108 convert((float*)buffer, samples, fVolume, 0.0);
115 convert((int32*)buffer, samples, fVolume, 0.5);
122 convert((int16*)buffer, samples, fVolume, 0.5);
128 for (int32 i = 0; i < samples; i++) {
139 convert((int8*)buffer, samples, fVolume, 0.5);
/haiku/src/apps/cortex/addons/common/
H A Daudio_buffer_tools.h187 size_t samples, size_t toOffset, size_t toLength) {
191 ASSERT(samples > 0);
196 for(; samples; samples--) {
213 size_t samples, size_t toOffset, size_t toLength) {
217 ASSERT(samples > 0);
222 for(; samples; samples--) {
238 size_t samples, size_t fromOffset, size_t fromLength) {
242 ASSERT(samples >
184 copy_linear_to_circular( from_sample_t* pFrom, to_sample_t* pTo, size_t samples, size_t toOffset, size_t toLength) argument
[all...]
H A DAudioBuffer.cpp210 // figure number of samples to convert
282 size_t samples = m_frames * channels; local
308 if(n == samples) {
335 size_t samples = m_frames * channels; local
361 if(n == samples) {
388 size_t samples = m_frames * channels; local
413 if(n == samples) {
445 size_t samples = m_frames * channels; local
466 if(n == samples) {
/haiku/src/tests/kits/shared/
H A DNaturalCompareTest.cpp38 static const Sample samples[] = { local
65 _RunTests(samples, sizeof(samples) / sizeof(Sample));
82 NaturalCompareTest::_RunTests(const Sample* samples, int count) argument
85 const Sample& sample = samples[i];
H A DNaturalCompareTest.h26 void _RunTests(const Sample* samples, int count);
/haiku/src/apps/debuganalyzer/gui/chart/
H A DChartDataSource.h21 double* samples, int32 count) = 0;
H A DLineChartRenderer.cpp22 double* samples; member in struct:LineChartRenderer::DataSourceInfo
41 samples(NULL),
52 delete[] samples;
65 delete[] samples;
68 samples = new(std::nothrow) double[sampleCount];
69 if (samples == NULL)
75 // get the new samples
76 source->GetSamples(domain.min, domain.max, samples, sampleCount);
199 bottom - ((info->samples[first] - minRange) * scale)));
203 float(bottom - ((info->samples[
[all...]
/haiku/src/bin/debug/profile/
H A DThread.cpp118 Thread::SetSampleArea(area_id area, addr_t* samples) argument
121 fSamples = samples;
187 addr_t* samples = fSamples; local
190 addr_t sampleCount = *(samples++);
196 _SynchronizeImages((int32)samples[0]);
202 samples += eventParameterCount;
207 fProfileResult->AddSamples(this, samples, sampleCount);
209 samples += sampleCount;
224 Thread::AddSamples(addr_t* samples, int32 sampleCount) argument
226 fProfileResult->AddSamples(this, samples, sampleCoun
[all...]
H A DBasicProfileResult.h59 addr_t* samples, int32 sampleCount);
67 addr_t* samples, int32 sampleCount);
H A DSummaryProfileResult.cpp72 addr_t* samples, int32 sampleCount)
74 fResult->AddSamples(container, samples, sampleCount);
71 AddSamples(ImageProfileResultContainer* container, addr_t* samples, int32 sampleCount) argument
H A DBasicProfileResult.cpp190 fprintf(gOptions.output, " samples/tick: %.1f\n",
264 addr_t* samples, int32 sampleCount)
266 // Sort the samples. This way hits of the same symbol are
269 std::sort(samples, samples + sampleCount);
276 addr_t address = samples[i];
310 addr_t* samples, int32 sampleCount)
318 addr_t address = samples[k];
263 AddSamples(ImageProfileResultContainer* container, addr_t* samples, int32 sampleCount) argument
309 AddSamples(ImageProfileResultContainer* container, addr_t* samples, int32 sampleCount) argument
H A DThread.h57 void SetSampleArea(area_id area, addr_t* samples);
68 void AddSamples(addr_t* samples, int32 sampleCount);
H A DCallgrindProfileResult.h72 addr_t* samples, int32 sampleCount);
H A DSummaryProfileResult.h68 addr_t* samples, int32 sampleCount);
H A DTeam.cpp115 snprintf(areaName, sizeof(areaName), "profiling samples %ld",
117 void* samples; local
118 area_id sampleArea = create_area(areaName, &samples, B_ANY_ADDRESS,
126 thread->SetSampleArea(sampleArea, (addr_t*)samples);
281 // is necessary, since the update might contain samples hitting that
H A DProfileResult.h76 addr_t* samples,
/haiku/src/add-ons/media/media-add-ons/equalizer/
H A DEqualizer.h24 void ProcessBuffer(float *buffer, int samples);
H A DEqualizer.cpp90 Equalizer::ProcessBuffer(float* buffer, int samples) argument
92 if (!fActivated || samples <= 0)
97 float *end = buffer + samples;
/haiku/src/apps/soundrecorder/
H A DScopeView.cpp124 T samples[fPlayFormat.u.raw_audio.buffer_size
138 while (fIsRendering && fMediaTrack->ReadFrames(samples, &frames) == B_OK) {
145 sum += samples[2 * framesIndex];
146 sum += samples[2 * framesIndex + 1];
/haiku/src/apps/debuganalyzer/gui/thread_window/
H A DActivityPage.cpp66 virtual void GetSamples(double start, double end, double* samples, argument
92 samples[i] = 0;
301 samples[sampleIndex] = times[fTimeType] / sampleLength;
302 if (samples[sampleIndex] > 1.0)
303 samples[sampleIndex] = 1.0;
/haiku/src/tests/kits/midi/synth_file_reader/
H A DSynthFile.cpp49 SSound::SetSample(void* samples, int32 frameCount, int16 sampleSize, int16 channelCount) argument
52 fSamples = samples;
/haiku/src/add-ons/media/media-add-ons/vst_host/
H A DVSTHost.cpp503 VSTPlugin::Process(float *buffer, int samples, int channels) argument
509 for(int j = 0; j < samples; j++) {
514 for(int j = 0; j < samples; j++, src++) {
525 for(int j = 0; j < samples; j++) {
530 for(int j = 0; j < samples; j++, dst++) {
/haiku/headers/private/system/
H A Dsystem_profiler_defs.h22 bigtime_t interval; // interval at which to take samples
59 // profiling samples
138 addr_t samples[0]; member in struct:system_profiler_samples

Completed in 185 milliseconds

123