Commit Request - Step 1 Restore Files
Restored files.
This commit is contained in:
@@ -1,19 +1,7 @@
|
||||
|
||||
|
||||
interface AlsaDeviceInfoJson {
|
||||
cardId: number;
|
||||
id: string;
|
||||
name: string;
|
||||
longName: string;
|
||||
sampleRates: number[];
|
||||
minBufferSize: number;
|
||||
maxBufferSize: number;
|
||||
supportsCapture?: boolean;
|
||||
supportsPlayback?: boolean;
|
||||
}
|
||||
|
||||
export default class AlsaDeviceInfo {
|
||||
deserialize(input: AlsaDeviceInfoJson): AlsaDeviceInfo {
|
||||
deserialize(input: any): AlsaDeviceInfo {
|
||||
this.cardId = input.cardId;
|
||||
this.id = input.id;
|
||||
this.name = input.name;
|
||||
@@ -21,11 +9,9 @@ export default class AlsaDeviceInfo {
|
||||
this.sampleRates = input.sampleRates as number[];
|
||||
this.minBufferSize = input.minBufferSize;
|
||||
this.maxBufferSize = input.maxBufferSize;
|
||||
this.supportsCapture = input.supportsCapture ? true : false;
|
||||
this.supportsPlayback = input.supportsPlayback ? true : false;
|
||||
return this;
|
||||
}
|
||||
static deserialize_array(input: AlsaDeviceInfoJson[]): AlsaDeviceInfo[]
|
||||
static deserialize_array(input: any): AlsaDeviceInfo[]
|
||||
{
|
||||
let result: AlsaDeviceInfo[] = [];
|
||||
for (let i = 0; i < input.length; ++i)
|
||||
@@ -76,7 +62,5 @@ export default class AlsaDeviceInfo {
|
||||
longName: string = "";
|
||||
sampleRates: number[] = [];
|
||||
minBufferSize: number = 0;
|
||||
maxBufferSize: number = 0;
|
||||
supportsCapture: boolean = false;
|
||||
supportsPlayback: boolean = false;
|
||||
maxBufferSize: number = 0;
|
||||
};
|
||||
@@ -22,18 +22,13 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
interface AlsaMidiDeviceInfoJson {
|
||||
name: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export class AlsaMidiDeviceInfo {
|
||||
deserialize(input: AlsaMidiDeviceInfoJson) : AlsaMidiDeviceInfo{
|
||||
deserialize(input: any) : AlsaMidiDeviceInfo{
|
||||
this.name = input.name;
|
||||
this.description = input.description;
|
||||
return this;
|
||||
}
|
||||
static deserializeArray(input: AlsaMidiDeviceInfoJson[]): AlsaMidiDeviceInfo[] {
|
||||
static deserializeArray(input: any[]): AlsaMidiDeviceInfo[] {
|
||||
let result: AlsaMidiDeviceInfo[] = [];
|
||||
for (let i = 0; i < input.length; ++i) {
|
||||
result[i] = new AlsaMidiDeviceInfo().deserialize(input[i]);
|
||||
|
||||
@@ -17,20 +17,14 @@
|
||||
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
interface AlsaSequencerPortSelectionJson {
|
||||
id: string;
|
||||
name: string;
|
||||
sortOrder: number;
|
||||
}
|
||||
|
||||
export class AlsaSequencerPortSelection {
|
||||
deserialize(json: AlsaSequencerPortSelectionJson) {
|
||||
deserialize(json: any) {
|
||||
this.id = json.id;
|
||||
this.name = json.name;
|
||||
this.sortOrder = json.sortOrder;
|
||||
return this;
|
||||
};
|
||||
static deserialize_array(input: AlsaSequencerPortSelectionJson[]): AlsaSequencerPortSelection[] {
|
||||
static deserialize_array(input: any): AlsaSequencerPortSelection[] {
|
||||
let result: AlsaSequencerPortSelection[] = [];
|
||||
for (let i = 0; i < input.length; ++i) {
|
||||
result[i] = new AlsaSequencerPortSelection().deserialize(input[i]);
|
||||
@@ -42,16 +36,12 @@ export class AlsaSequencerPortSelection {
|
||||
sortOrder: number = 0;
|
||||
};
|
||||
|
||||
interface AlsaSequencerConfigurationJson {
|
||||
connections: AlsaSequencerPortSelectionJson[];
|
||||
}
|
||||
|
||||
export class AlsaSequencerConfiguration {
|
||||
deserialize(input: AlsaSequencerConfigurationJson) {
|
||||
deserialize(input: any) {
|
||||
this.connections = AlsaSequencerPortSelection.deserialize_array(input.connections);
|
||||
return this;
|
||||
}
|
||||
deserialize_array(input: AlsaSequencerConfigurationJson[]): AlsaSequencerConfiguration[] {
|
||||
deserialize_array(input: any): AlsaSequencerConfiguration[] {
|
||||
let result: AlsaSequencerConfiguration[] = [];
|
||||
for (let i = 0; i < input.length; ++i) {
|
||||
result[i] = new AlsaSequencerConfiguration().deserialize(input[i]);
|
||||
|
||||
@@ -705,9 +705,6 @@ const SettingsDialog = withStyles(
|
||||
showJackServerSettingsDialog: false,
|
||||
jackServerSettings: jackServerSettings
|
||||
});
|
||||
// Apply immediately so the audio driver is
|
||||
// restarted with the chosen devices before
|
||||
// saving the settings.
|
||||
this.model.setJackServerSettings(jackServerSettings);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user