-
-AudioPoint::AudioPoint ()
-{
- for (int i = 0; i < COUNT; ++i) {
- _data[i] = 0;
- }
-}
-
-AudioPoint::AudioPoint (FILE* f)
-{
- for (int i = 0; i < COUNT; ++i) {
- int n = fscanf (f, "%f", &_data[i]);
- if (n != 1) {
- _data[i] = 0;
- }
- }
-}
-
-AudioPoint::AudioPoint (AudioPoint const & other)
-{
- for (int i = 0; i < COUNT; ++i) {
- _data[i] = other._data[i];
- }
-}
-
-AudioPoint &
-AudioPoint::operator= (AudioPoint const & other)
-{
- if (this == &other) {
- return *this;
- }
-
- for (int i = 0; i < COUNT; ++i) {
- _data[i] = other._data[i];
- }
-
- return *this;
-}
-
-void
-AudioPoint::write (FILE* f) const
-{
- for (int i = 0; i < COUNT; ++i) {
- fprintf (f, "%f\n", _data[i]);
- }
-}
-