1/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18package android.media.videoeditor;
19
20/**
21 * This listener interface is used by
22 * {@link MediaVideoItem#extractAudioWaveform(ExtractAudioWaveformProgressListener listener)}
23 * or
24 * {@link AudioTrack#extractAudioWaveform(ExtractAudioWaveformProgressListener listener)}
25 * {@hide}
26 */
27public interface ExtractAudioWaveformProgressListener {
28    /**
29     * This method notifies the listener of the progress status of
30     * an extractAudioWaveform operation.
31     * This method may be called maximum 100 times for one operation.
32     *
33     * @param progress The progress in %. At the beginning of the operation,
34     *          this value is set to 0; at the end, the value is set to 100.
35     */
36    public void onProgress(int progress);
37}
38
39