~ubuntu-branches/ubuntu/lucid/ecasound2.2/lucid

« back to all changes in this revision

Viewing changes to libecasound/eca-audio-position.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2008-09-26 09:58:52 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080926095852-k3v9ewhmxpaltusw
Tags: 2.5.2-3
yodl 2.13.1 removed --unique-output option. Remove --unique-output
accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// ------------------------------------------------------------------------
2
2
// eca-audio-position.cpp: Base class for representing position and length
3
3
//                         of a audio stream.
4
 
// Copyright (C) 1999-2002,2007 Kai Vehmanen
 
4
// Copyright (C) 1999-2002,2007,2008 Kai Vehmanen
5
5
//
6
6
// Attributes:
7
7
//     eca-style-version: 3 (see Ecasound Programmer's Guide)
136
136
 
137
137
void ECA_AUDIO_POSITION::seek_position_in_samples(SAMPLE_SPECS::sample_pos_t pos_in_samples)
138
138
{
139
 
  set_position_in_samples(pos_in_samples);
140
 
  seek_position();
 
139
  SAMPLE_SPECS::sample_pos_t res =
 
140
    seek_position(pos_in_samples);
 
141
  set_position_in_samples(res);
141
142
}
142
143
 
143
144
void ECA_AUDIO_POSITION::seek_position_in_samples_advance(SAMPLE_SPECS::sample_pos_t pos)