Searched refs:frames (Results 26 - 50 of 84) sorted by relevance

1234

/haiku-fatelf/src/apps/cortex/addons/common/
H A DSoundUtils.cpp75 // This will give us the number of full-sized frames that will fit
78 int frames = 0; local
80 frames = format.buffer_size / bytes_per_frame(format);
82 return frames;
95 // bytes/(bytes/frame) / frames/sec
96 // = frames * sec/frames
121 // secs * ( (frames/sec) / (frames/buffer) ) = secs * (buffers/sec) = buffers
H A DAudioBuffer.cpp71 uint32 frames,
82 resize(frames);
88 uint32 frames,
95 frames,
149 uint32 frames,
157 operator=(AudioBuffer(format, pData, frames, bCircular, pFromPool));
192 uint32 frames) const {
196 return rawCopyTo(target, pioFromFrame, pioTargetFrame, frames);
211 uint32 toCopy = frames * m_format.channel_count;
262 uint32 frames,
69 AudioBuffer( const media_raw_audio_format& format, uint32 frames, bool bCircular, rtm_pool* pFromPool) argument
85 AudioBuffer( const media_raw_audio_format& format, void* pData, uint32 frames, bool bCircular, rtm_pool* pFromPool) argument
146 adopt( const media_raw_audio_format& format, void* pData, uint32 frames, bool bCircular, rtm_pool* pFromPool) argument
258 mixTo( AudioBuffer& target, uint32* pioFromFrame, uint32* pioTargetFrame, uint32 frames, float fGain ) const argument
[all...]
/haiku-fatelf/src/apps/cortex/support/
H A DSoundUtils.cpp75 // This will give us the number of full-sized frames that will fit
78 int frames = 0; local
80 frames = format.buffer_size / bytes_per_frame(format);
82 return frames;
95 // bytes/(bytes/frame) / frames/sec
96 // = frames * sec/frames
121 // secs * ( (frames/sec) / (frames/buffer) ) = secs * (buffers/sec) = buffers
/haiku-fatelf/src/apps/mediaplayer/supplier/
H A DProxyAudioSupplier.h48 void _ReadSilence(void* buffer, int64 frames) const;
50 int64 frames) const;
51 void* _SkipFrames(void* buffer, int64 frames) const;
H A DProxyAudioSupplier.cpp164 "frames: %lld\n", intervalIndex,
178 // backwards -> reverse frames
335 ProxyAudioSupplier::_ReadSilence(void* buffer, int64 frames) const
337 memset(buffer, 0, (char*)_SkipFrames(buffer, frames) - (char*)buffer);
342 ProxyAudioSupplier::_ReverseFrames(void* buffer, int64 frames) const
348 char* back = (char*)buffer + (frames - 1) * frameSize;
359 ProxyAudioSupplier::_SkipFrames(void* buffer, int64 frames) const
364 return (char*)buffer + frames * frameSize;
/haiku-fatelf/src/kits/media/
H A DSoundUtils.cpp44 // This will give us the number of full-sized frames that will fit
47 int frames = 0; local
49 frames = format.buffer_size / bytes_per_frame(format);
51 return frames;
65 // bytes/(bytes/frame) / frames/sec
66 // = frames * sec/frames
92 // secs * ( (frames/sec) / (frames/buffer) ) = secs * (buffers/sec)
H A DTimeCode.cpp10 status_t us_to_timecode(bigtime_t micros, int * hours, int * minutes, int * seconds, int * frames, const timecode_info * code) argument
31 // Convert us to frames
35 return frames_to_timecode(l_frames, hours, minutes, seconds, frames, code);
38 status_t timecode_to_us(int hours, int minutes, int seconds, int frames, bigtime_t * micros, const timecode_info * code) argument
44 if (timecode_to_frames(hours, minutes, seconds, frames, &l_frames, code) == B_OK) {
70 status_t frames_to_timecode(int32 l_frames, int * hours, int * minutes, int * seconds, int * frames, const timecode_info * code) argument
95 // Gaining frames may mean that we gain more frames so we keep adjusting until no more to adjust
104 // l_frames should now include all adjusted frames
118 // Gaining frames ma
142 timecode_to_frames(int hours, int minutes, int seconds, int frames, int32 * l_frames, const timecode_info * code) argument
275 BTimeCode(int hours, int minutes, int seconds, int frames, timecode_type type) argument
295 SetData(int hours, int minutes, int seconds, int frames) argument
[all...]
H A DOldAudioModule.cpp22 BAudioEvent::BAudioEvent(int32 frames, bool stereo, float *samples) argument
118 BAudioEvent::MixIn(float *dst, int32 frames, mk_time time) argument
268 BDACRenderer::WriteDAC(short *buf, int32 frames, audio_buffer_header *header) argument
428 BADCSource::ReadADC(short *buf, int32 frames, audio_buffer_header *header) argument
H A DOldAudioModule.h25 BAudioEvent(int32 frames, bool stereo, float* samples = NULL);
38 virtual bool MixIn (float* dst, int32 frames, mk_time time);
76 bool WriteDAC(short* buf, int32 frames, audio_buffer_header* header);
130 void ReadADC(short* buf, int32 frames, audio_buffer_header* header);
/haiku-fatelf/src/bin/playsound/
H A Dplayfile.cpp27 int64 frames = 0; local
30 playTrack->ReadFrames(buffer, &frames);
32 if (frames <=0) {
/haiku-fatelf/src/kits/game/
H A DSimpleGameSound.cpp149 int64 frames = audioStream->CountFrames();
166 uchar * data = new uchar[frames * gsformat.channel_count];
168 while (framesTotal < frames) {
183 error = Init(data, frames, &gsformat);
193 char * data = new char[frames * frameSize];
194 gsformat.buffer_size = frames * frameSize;
196 while (framesTotal < frames) {
203 error = Init(data, frames, &gsformat);
H A DGameSoundBuffer.cpp271 GameSoundBuffer::Play(void * data, int64 frames) argument
277 char * buffer = new char[fFrameSize * frames];
279 FillBuffer(buffer, frames);
284 for (int64 i = 0; i < frames; i++) {
294 for (int64 i = 0; i < frames; i++) {
304 for (int64 i = 0; i < frames; i++) {
314 for (int64 i = 0; i < frames; i++) {
489 const void * data, int64 frames)
494 fBufferSize = frames * fFrameSize;
516 SimpleSoundBuffer::FillBuffer(void * data, int64 frames) argument
488 SimpleSoundBuffer(const gs_audio_format * format, const void * data, int64 frames) argument
564 FillBuffer(void * buffer, int64 frames) argument
[all...]
H A DGSUtility.cpp19 InitRamp(float* value, float set, float frames, bigtime_t duration) argument
29 ramp->frame_total = frames * sec;
H A DGameProducer.cpp243 int32 frames = int32(fBufferSize / fFrameSize); local
244 float* data = new float[frames * 2];
248 for (int32 i = 0; i < frames; i++) {
249 data[i * 2] = 0.8 * float(i / frames);
250 data[i * 2 + 1] = 0.8 * float(i / frames);
262 bigtime_t duration = bigtime_t(1000000) * frames
534 int64 frames = int64(fBufferSize / fFrameSize);
538 fObject->Play(buf->Data(), frames);
/haiku-fatelf/src/add-ons/kernel/debugger/qrencode/
H A Dmqrspec.c160 * Cache of initial frames.
164 static unsigned char *frames[MQRSPEC_VERSION_MAX + 1]; variable
250 if(frames[version] == NULL) {
251 frames[version] = MQRspec_createFrame(version);
256 if(frames[version] == NULL) return NULL;
261 memcpy(frame, frames[version], width * width);
274 free(frames[i]);
275 frames[i] = NULL;
/haiku-fatelf/src/apps/cortex/InfoView/
H A DFileNodeInfoView.cpp130 int hours, minutes, seconds, frames; local
131 us_to_timecode(duration, &hours, &minutes, &seconds, &frames);
133 sprintf(buffer, "%02d:%02d:%02d:%02d", hours, minutes, seconds, frames);
/haiku-fatelf/src/apps/mediaplayer/media_node_framework/audio/
H A DAudioAdapter.cpp94 AudioAdapter::Read(void* buffer, int64 pos, int64 frames) argument
96 TRACE("AudioAdapter::Read(%p, %Ld, %Ld)\n", buffer, pos, frames);
101 status_t ret = fFinalConverter->Read(buffer, pos, frames);
/haiku-fatelf/src/documentation/docbook-xsl/slides/browser/
H A Dslides.js21 var mytoc = window.top.frames[0];
95 if (window.top.frames[1]) {
96 window.top.frames[1].location = target;
/haiku-fatelf/src/servers/media_addon/
H A DMediaFilePlayer.cpp146 int64 frames = 0; local
147 player->fPlayTrack->ReadFrames(buffer, &frames);
149 if (frames <=0) {
/haiku-fatelf/headers/os/midi/
H A DSamples.h19 void* sampleData, int32 frames, int16 bytes_per_sample,
/haiku-fatelf/src/add-ons/media/media-add-ons/multi_audio/
H A DTimeComputer.h18 void AddTimeStamp(bigtime_t realTime, uint64 frames);
/haiku-fatelf/src/add-ons/media/media-add-ons/mixer/
H A DMixerUtils.cpp230 duration_for_frames(double framerate, int64 frames) argument
232 if (frames <= 0 || framerate <= 0.0)
234 return (bigtime_t)((1000000.0 * frames) / framerate);
252 int frames = 0; local
254 frames = format.buffer_size / bytes_per_frame(format);
256 return frames;
/haiku-fatelf/src/system/kernel/arch/m68k/
H A Darch_debug.cpp165 frameStack->frames[i], frameStack->frames[i] + 1);
188 if (framePointer == (addr_t)frameStack->frames[i]) {
190 frame = frameStack->frames[i];
293 // Keep skipping normal stack frames until we've skipped the iframes we're
317 if (framePointer == (addr_t)frameStack->frames[i]) {
319 frame = frameStack->frames[i];
H A Darch_thread.cpp49 stack->frames[stack->index++] = frame;
72 return thread->arch_info.iframes.frames[thread->arch_info.iframes.index - 1];
89 struct iframe *frame = thread->arch_info.iframes.frames[i];
165 // space for frame pointer and return address, and stack frames must be
/haiku-fatelf/src/system/kernel/arch/ppc/
H A Darch_thread.cpp37 stack->frames[stack->index++] = frame;
60 return thread->arch_info.iframes.frames[thread->arch_info.iframes.index - 1];
77 struct iframe *frame = thread->arch_info.iframes.frames[i];
137 // space for frame pointer and return address, and stack frames must be

Completed in 128 milliseconds

1234