Changeset 4add9fe38b3ef395be2deee5930bd0b6b0a7cd07
- Timestamp:
- 03/09/08 12:39:39
(6 months ago)
- Author:
- Filippo Carone <littlejohn@videolan.org>
- git-committer:
- Filippo Carone <littlejohn@videolan.org> 1205062779 +0100
- git-parent:
[f8b641ed9bf0cec1a945ec5bebdd136e2acfc7d0]
- git-author:
- Filippo Carone <littlejohn@videolan.org> 1205062779 +0100
- Message:
do not throw VLCException in Audio
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r9ac46b4 |
r4add9fe |
|
| 28 | 28 | package org.videolan.jvlc; |
|---|
| 29 | 29 | |
|---|
| 30 | | import java.util.HashMap; |
|---|
| 31 | | import java.util.HashSet; |
|---|
| 32 | | import java.util.Iterator; |
|---|
| 33 | | import java.util.Map; |
|---|
| 34 | | import java.util.Set; |
|---|
| 35 | | |
|---|
| 36 | 30 | import org.videolan.jvlc.internal.LibVlc.libvlc_exception_t; |
|---|
| 37 | 31 | |
|---|
| … | … | |
| 42 | 36 | private final JVLC jvlc; |
|---|
| 43 | 37 | |
|---|
| | 38 | /** |
|---|
| | 39 | * Constant for left channel audio |
|---|
| | 40 | */ |
|---|
| | 41 | public static final int LEFT_CHANNEL = 3; |
|---|
| | 42 | |
|---|
| | 43 | /** |
|---|
| | 44 | * Constant for right channel audio |
|---|
| | 45 | */ |
|---|
| | 46 | public static final int RIGHT_CHANNEL = 4; |
|---|
| | 47 | |
|---|
| | 48 | /** |
|---|
| | 49 | * Constant for reverse channel audio |
|---|
| | 50 | */ |
|---|
| | 51 | public static final int REVERSE_CHANNEL = 2; |
|---|
| | 52 | |
|---|
| | 53 | /** |
|---|
| | 54 | * Constant for stereo channel audio |
|---|
| | 55 | */ |
|---|
| | 56 | public static final int STEREO_CHANNEL = 1; |
|---|
| | 57 | |
|---|
| | 58 | /** |
|---|
| | 59 | * Constant for dolby channel audio |
|---|
| | 60 | */ |
|---|
| | 61 | public final int DOLBY_CHANNEL = 5; |
|---|
| | 62 | |
|---|
| | 63 | |
|---|
| 44 | 64 | public Audio(JVLC jvlc) |
|---|
| 45 | 65 | { |
|---|
| … | … | |
| 47 | 67 | } |
|---|
| 48 | 68 | |
|---|
| 49 | | public int getTrack(MediaInstance mediaInstance) throws VLCException |
|---|
| | 69 | public int getTrack(MediaInstance mediaInstance) |
|---|
| 50 | 70 | { |
|---|
| 51 | 71 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| … | … | |
| 53 | 73 | } |
|---|
| 54 | 74 | |
|---|
| 55 | | public void setTrack(MediaInstance mediaInstance, int track) throws VLCException |
|---|
| | 75 | public void setTrack(MediaInstance mediaInstance, int track) |
|---|
| 56 | 76 | { |
|---|
| 57 | 77 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| … | … | |
| 59 | 79 | } |
|---|
| 60 | 80 | |
|---|
| 61 | | public int getChannel() throws VLCException |
|---|
| | 81 | public int getChannel() |
|---|
| 62 | 82 | { |
|---|
| 63 | 83 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| … | … | |
| 65 | 85 | } |
|---|
| 66 | 86 | |
|---|
| 67 | | public void setChannel(int channel) throws VLCException |
|---|
| | 87 | public void setChannel(int channel) |
|---|
| 68 | 88 | { |
|---|
| 69 | 89 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| … | … | |
| 71 | 91 | } |
|---|
| 72 | 92 | |
|---|
| 73 | | public boolean getMute() throws VLCException |
|---|
| | 93 | public boolean getMute() |
|---|
| 74 | 94 | { |
|---|
| 75 | 95 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| … | … | |
| 77 | 97 | } |
|---|
| 78 | 98 | |
|---|
| 79 | | public void setMute(boolean value) throws VLCException |
|---|
| | 99 | public void setMute(boolean value) |
|---|
| 80 | 100 | { |
|---|
| 81 | 101 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| … | … | |
| 83 | 103 | } |
|---|
| 84 | 104 | |
|---|
| 85 | | public void toggleMute() throws VLCException |
|---|
| | 105 | public void toggleMute() |
|---|
| 86 | 106 | { |
|---|
| 87 | 107 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| … | … | |
| 89 | 109 | } |
|---|
| 90 | 110 | |
|---|
| 91 | | public int getVolume() throws VLCException |
|---|
| | 111 | public int getVolume() |
|---|
| 92 | 112 | { |
|---|
| 93 | 113 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| … | … | |
| 95 | 115 | } |
|---|
| 96 | 116 | |
|---|
| 97 | | public void setVolume(int volume) throws VLCException |
|---|
| | 117 | public void setVolume(int volume) |
|---|
| 98 | 118 | { |
|---|
| 99 | 119 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|