-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef0a9a3
commit 3b63dd3
Showing
14 changed files
with
202 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
...oeffectsettingkit/src/main/java/com/tencent/liteav/audiosettingkit/AudioEffectDialog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package com.tencent.liteav.audiosettingkit; | ||
|
||
import android.content.Context; | ||
import android.support.annotation.NonNull; | ||
import android.support.design.widget.BottomSheetDialog; | ||
import android.view.Window; | ||
|
||
import com.tencent.liteav.audio.TXAudioEffectManager; | ||
|
||
public class AudioEffectDialog extends BottomSheetDialog { | ||
|
||
private AudioEffectPanel mAudioEffectPanel; | ||
|
||
public AudioEffectDialog(@NonNull Context context) { | ||
super(context); | ||
initialize(context); | ||
} | ||
|
||
@Override | ||
public void show() { | ||
super.show(); | ||
mAudioEffectPanel.showAudioPanel(); | ||
} | ||
|
||
@Override | ||
public void cancel() { | ||
super.cancel(); | ||
mAudioEffectPanel.hideAudioPanel(); | ||
} | ||
|
||
@Override | ||
public void dismiss() { | ||
super.dismiss(); | ||
mAudioEffectPanel.hideAudioPanel(); | ||
} | ||
|
||
private void initialize(Context context) { | ||
mAudioEffectPanel = new AudioEffectPanel(context); | ||
setContentView(mAudioEffectPanel); | ||
Window window = getWindow(); | ||
if (window != null) { | ||
window.findViewById(R.id.design_bottom_sheet).setBackgroundResource(android.R.color.transparent); | ||
} | ||
} | ||
|
||
public void setAudioEffectManager(TXAudioEffectManager audioEffectManager) { | ||
mAudioEffectPanel.setAudioEffectManager(audioEffectManager); | ||
} | ||
|
||
public void setOnAudioEffectPanelHideListener(AudioEffectPanel.OnAudioEffectPanelHideListener listener) { | ||
mAudioEffectPanel.setOnAudioEffectPanelHideListener(listener); | ||
} | ||
|
||
public void setBackgroundColor(int color) { | ||
mAudioEffectPanel.setBackgroundColor(color); | ||
} | ||
|
||
public void reset() { | ||
mAudioEffectPanel.reset(); | ||
} | ||
|
||
public void unInit() { | ||
mAudioEffectPanel.unInit(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.