equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
99 break; |
99 break; |
100 case AuFileFormat.AU_FLOAT: |
100 case AuFileFormat.AU_FLOAT: |
101 encoding = AudioFormat.Encoding.PCM_FLOAT; |
101 encoding = AudioFormat.Encoding.PCM_FLOAT; |
102 sampleSizeInBits = 32; |
102 sampleSizeInBits = 32; |
103 break; |
103 break; |
|
104 case AuFileFormat.AU_DOUBLE: |
|
105 encoding = AudioFormat.Encoding.PCM_FLOAT; |
|
106 sampleSizeInBits = 64; |
|
107 break; |
104 // we don't support these ... |
108 // we don't support these ... |
105 /* case AuFileFormat.AU_DOUBLE: |
109 /* case AuFileFormat.AU_ADPCM_G721: |
106 encoding = new AudioFormat.DOUBLE; |
|
107 sampleSizeInBits = 8; |
|
108 break; |
|
109 case AuFileFormat.AU_ADPCM_G721: |
|
110 encoding = new AudioFormat.G721_ADPCM; |
110 encoding = new AudioFormat.G721_ADPCM; |
111 sampleSizeInBits = 16; |
111 sampleSizeInBits = 16; |
112 break; |
112 break; |
113 case AuFileFormat.AU_ADPCM_G723_3: |
113 case AuFileFormat.AU_ADPCM_G723_3: |
114 encoding = new AudioFormat.G723_3; |
114 encoding = new AudioFormat.G723_3; |