VRFS-638 added logging to help debug this issue

This commit is contained in:
Brian Smith 2013-09-05 21:11:11 -04:00
parent 80c06c387a
commit 497215ac58
4 changed files with 14 additions and 12 deletions

View File

@ -138,9 +138,6 @@
saveTrack();
app.layout.closeDialog('add-track');
// refresh Session screen
sessionModel.refreshCurrentSession();
}
function saveTrack() {
@ -167,8 +164,7 @@
data.sound = "stereo";
sessionModel.addTrack(sessionId, data);
var clientTrackId = context.jamClient.TrackSaveAssignments();
console.log("clientTrackId=" + clientTrackId);
context.jamClient.TrackSaveAssignments();
}
function validateSettings() {

View File

@ -206,11 +206,11 @@
});
});
$('.voicechat-settings').click(function() {
// call this to initialize Music Audio tab
showMusicAudioPanel(true);
showVoiceChatPanel(true);
});
// $('.voicechat-settings').click(function() {
// // call this to initialize Music Audio tab
// showMusicAudioPanel(true);
// showVoiceChatPanel(true);
// });
$('#audio-drivers').change(function() {
audioDriverChanged();
@ -612,7 +612,7 @@
function saveVoiceChatSettings() {
currentVoiceChat = $('#voice-chat-device').val();
//logger.debug("Calling TrackSetChatUsesMusic with value = " + currentVoiceChat);
logger.debug("Calling TrackSetChatUsesMusic with value = " + currentVoiceChat);
context.jamClient.TrackSetChatUsesMusic(currentVoiceChat);
// UNASSIGNED VOICE CHAT
@ -663,6 +663,8 @@
}
}
logger.debug("myTrackCount=" + myTrackCount);
// if Track 2 exists, verify Input and Instrument exist
if (isValid && myTrackCount > 1) {
if ($('#track2-input > option').size() === 0 || $('#track2-input > option').size() > 2) {
@ -737,6 +739,7 @@
});
originalVoiceChat = context.jamClient.TrackGetChatUsesMusic();
logger.debug("originalVoiceChat=" + originalVoiceChat);
$('#voice-chat-device').val(originalVoiceChat);
originalDeviceId = context.jamClient.TrackGetMusicDeviceID();

View File

@ -413,11 +413,12 @@
});
});
logger.debug("416-myTracks.length=" + myTracks.length);
configureTrackDialog = new context.JK.ConfigureTrackDialog(app, myTracks, sessionId, sessionModel);
addTrackDialog = new context.JK.AddTrackDialog(app, myTracks, sessionId, sessionModel);
addNewGearDialog = new context.JK.AddNewGearDialog(app);
// hide "Add Track" link if there are 2 tracks:
// # NO LONGER HIDING ADD TRACK even when there are 2 tracks (VRFS-537)
$('#div-add-track').click(function() {
if (myTracks.length === 2) {
@ -639,6 +640,7 @@
function deleteTrack(evt) {
var trackId = $(evt.currentTarget).attr("track-id");
sessionModel.deleteTrack(sessionId, trackId);
logger.debug("643-myTracks.length=" + myTracks.length);
}
function _toggleVisualMuteControl($control, muting) {

View File

@ -254,6 +254,7 @@
processData:false,
success: function(response) {
logger.debug("Successfully added track (" + JSON.stringify(data) + ")");
refreshCurrentSession();
},
error: ajaxError
});