Line | |
---|
1 | package org.apollo.util;
|
---|
2 |
|
---|
3 | import org.apollo.audio.SampledTrackModel;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * A work around for sharing SampledTrackModel references - avoids loading multiple copies of the same audio
|
---|
7 | * file and thus can enforce single playback of one audio file at a time.
|
---|
8 | *
|
---|
9 | * @author Brook Novak
|
---|
10 | *
|
---|
11 | */
|
---|
12 | public interface TrackModelHandler {
|
---|
13 | /**
|
---|
14 | * The contract is that any reference that is / will be available through this instance must be
|
---|
15 | * returned to avoid double loading of the same tracks.
|
---|
16 | *
|
---|
17 | * This can be called from any thread...
|
---|
18 | *
|
---|
19 | * @param localFileName
|
---|
20 | *
|
---|
21 | * @return
|
---|
22 | */
|
---|
23 | public SampledTrackModel getSharedSampledTrackModel(String localFileName);
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.