source: trunk/src_apollo/org/apollo/audio/util/Overdub.java@ 315

Last change on this file since 315 was 315, checked in by bjn8, 16 years ago

Apollo spin-off added

File size: 1.2 KB
Line 
1package org.apollo.audio.util;
2
3import org.apollo.audio.SampledTrackModel;
4
5/**
6 * Describes a track that is part of a trackgroup for synchronized multiplayback.
7 *
8 * @author Brook Novak
9 *
10 */
11final class Overdub {
12
13 private SampledTrackModel tmodel; // immutable never null
14
15 private String channelID; // immutable never null - points to track sequence data via sounddesk
16
17 private long absInitiationFrame;
18
19 int startFrame;
20
21 int endFrame;
22
23 int relativeInitiationFrame;
24
25 Overdub(SampledTrackModel tmodel, String channelID, long absInitiationFrame) {
26 assert(tmodel != null);
27 assert(channelID != null);
28 assert(absInitiationFrame >= 0);
29
30 this.tmodel = tmodel;
31 this.channelID = channelID;
32 this.startFrame = -1;
33 this.endFrame = -1;
34 this.relativeInitiationFrame = -1;
35 this.absInitiationFrame = absInitiationFrame;
36 }
37
38 public String getChannelID() {
39 return channelID;
40 }
41
42 public int getEndFrame() {
43 return endFrame;
44 }
45
46 public int getRelativeInitiationFrame() {
47 return relativeInitiationFrame;
48 }
49
50 public long getABSInitiationFrame() {
51 return absInitiationFrame;
52 }
53
54 public int getStartFrame() {
55 return startFrame;
56 }
57
58 public SampledTrackModel getTrackModel() {
59 return tmodel;
60 }
61
62
63}
Note: See TracBrowser for help on using the repository browser.