Searched refs:nFrames (Results 1 - 11 of 11) sorted by relevance

/macosx-10.9.5/OpenAL-52.1/Source/OpenAL/
H A DoalOSX.h86 bool Store(const Byte *data, UInt32 nFrames, SInt64 frameNumber);
87 OSStatus Fetch(Byte *data, UInt32 nFrames, SInt64 frameNumber);
H A DoalOSX.cpp870 bool OALRingBuffer::Store(const Byte *data, UInt32 nFrames, SInt64 startFrame) argument
872 if (nFrames > mCapacityFrames) return false;
876 SInt64 endFrame = startFrame + nFrames;
886 memcpy(mBuffer, data, nFrames * mBytesPerFrame);
930 OSStatus OALRingBuffer::Fetch(Byte *data, UInt32 nFrames, SInt64 startFrame) argument
932 SInt64 endFrame = startFrame + nFrames;
/macosx-10.9.5/tcl-102/tcl_ext/snack/snack/unix/
H A DjkAudIO_osx.c222 SnackAudioRead(ADesc *A, void *buf, int nFrames) argument
228 /* printf("SnackAudioRead frames %d rpos %d tot %d\n", nFrames, A->rpos, A->tot);*/
230 if (nFrames > tot) {
231 nFrames = tot;
234 for (i = 0; i < nFrames; i++) {
265 A->rpos = (A->rpos + (int)(nFrames/frac)) % (BUFLEN/2);
266 A->tot -= (int) (nFrames/frac);
268 return(nFrames);
272 SnackAudioWrite(ADesc *A, void *buf, int nFrames) argument
274 /* printf("SnackAudioWrite %d frames %d (%d %d)\n", A->wpos, nFrames,nFrame
[all...]
H A DjkAudIO_alsa.c215 SnackAudioRead(ADesc *A, void *buf, int nFrames) argument
219 if (A->debug > 1) Snack_WriteLogInt(" Enter SnackAudioRead", nFrames);
221 n = snd_pcm_readi(A->handle, buf, nFrames);
229 SnackAudioWrite(ADesc *A, void *buf, int nFrames) argument
233 n = snd_pcm_writei(A->handle, buf, nFrames);
H A DjkAudIO_sun.c218 SnackAudioRead(ADesc *A, void *buf, int nFrames) argument
220 if (nFrames == 0) return(0);
226 for (i = 0; i < nFrames * A->nChannels; i += 2) {
241 int n = read(A->afd, buf, nFrames * A->bytesPerSample * A->nChannels);
248 SnackAudioWrite(ADesc *A, void *buf, int nFrames) argument
253 if (nFrames * A->bytesPerSample * A->nChannels > A->convSize) {
254 A->convSize = nFrames * A->bytesPerSample * A->nChannels;
259 A->convSize = nFrames * A->bytesPerSample * A->nChannels;
260 for (i = 0; i < nFrames * A->nChannels; i += 2) {
269 n = write(A->afd, A->convBuf, nFrames *
[all...]
H A DjkAudIO_sgi.c251 SnackAudioRead(ADesc *A, void *buf, int nFrames) argument
253 alReadFrames(A->port, buf, nFrames * A->nChannels); /* always returns 0 */
254 return(nFrames);
258 SnackAudioWrite(ADesc *A, void *buf, int nFrames) argument
260 alWriteFrames(A->port, buf, nFrames * A->nChannels);
261 return(nFrames);
H A DjkAudIO_oss.c279 SnackAudioRead(ADesc *A, void *buf, int nFrames) argument
283 if (A->debug > 1) Snack_WriteLogInt(" Enter SnackAudioRead", nFrames);
286 while (nFrames > n * 2) n *= 2;
287 nFrames = n;
293 for (i = 0; i < nFrames * A->nChannels; i += A->nChannels) {
312 int n = read(A->afd, (unsigned char *)buf, nFrames * A->bytesPerSample * A->nChannels);
323 SnackAudioWrite(ADesc *A, void *buf, int nFrames) argument
331 for (i = 0; i < nFrames * A->nChannels; i++) {
344 int n = write(A->afd, buf, nFrames * A->bytesPerSample * A->nChannels);
H A DjkAudIO_skel.c75 SnackAudioRead(ADesc *A, void *buf, int nFrames) argument
80 SnackAudioWrite(ADesc *A, void *buf, int nFrames) argument
H A DjkAudIO_hp.c285 SnackAudioRead(ADesc *A, void *buf, int nFrames) argument
287 int n = read(A->Socket, buf, nFrames * A->bytesPerSample * A->nChannels);
294 SnackAudioWrite(ADesc *A, void *buf, int nFrames) argument
300 for (i = 0; i < nFrames * A->nChannels; i++) {
309 int n = write(A->Socket, buf, nFrames * A->bytesPerSample * A->nChannels);
/macosx-10.9.5/tcl-102/tcl_ext/snack/snack/win/
H A DjkAudIO_win.c778 SnackAudioRead(ADesc *A, void *buf, int nFrames) argument
789 if (A->debug > 1) Snack_WriteLogInt(" Enter SnackAudioRead", nFrames);
801 if (size > nFrames * (A->bytesPerSample * A->nChannels)) {
802 size = nFrames * (A->bytesPerSample * A->nChannels);
832 nFrames = size / (A->bytesPerSample * A->nChannels);
838 return(nFrames);
848 if (A->debug > 1) Snack_WriteLogInt(" Enter SnackAudioRead", nFrames);
881 while ((waveHdrIn[A->curr].dwFlags & WHDR_DONE) && (n < nFrames)) {
882 if ((unsigned int)(nFrames - n) * (A->bytesPerSample * A->nChannels) < waveHdrIn[A->curr].dwBytesRecorded) {
883 nsamps = nFrames
928 SnackAudioWrite(ADesc *A, void *buf, int nFrames) argument
[all...]
/macosx-10.9.5/IOAudioFamily-197.4.2/PCMBlitterLib/
H A DIOAudioBlitterLib.h184 // nSamples = nFrames * nChannels
445 virtual void Interleave(ConstVoidPtr vsrc[], void *vdest, int nChannels, unsigned int nFrames)
462 count = nFrames >> 1;
485 count = nFrames & 1;
618 virtual void Deinterleave(ConstVoidPtr vsrc, void *vdest[], int nChannels, unsigned int nFrames)
628 count = nFrames;

Completed in 185 milliseconds