2
stores frames as floats.
3
Copyright (C) 2001 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
14
#include "floatFrame.h"
17
FloatFrame::FloatFrame(int size) {
21
this->sampleSize=sizeof(float)*8;
23
this->lBigEndian=AUDIOFRAME_BIGENDIAN;
24
setFrameType(_FRAME_AUDIO_FLOAT);
28
FloatFrame::~FloatFrame() {
33
void FloatFrame::putFloatData(float* in,int lenCopy) {
34
if ((len+lenCopy) > size) {
35
cout << "cannot copy putFloatData. Does not fit"<<endl;
38
memcpy(data+len,in,lenCopy*sizeof(float));
45
void FloatFrame::putFloatData(float* left,float* right,int len) {
46
cout << "not yet implemented"<<endl;