adding backbones for audio

This commit is contained in:
Chris Cochrun 2022-09-25 07:08:00 -05:00
parent 9a732e6826
commit c197277e62
7 changed files with 86 additions and 16 deletions

View file

@ -402,13 +402,13 @@ ColumnLayout {
}
function addItem(index, name, type,
background, backgroundType, text, itemID) {
background, backgroundType, text, audio, itemID) {
if (type === "song") {
const newtext = songsqlmodel.getLyricList(itemID);
print("adding: " + name + " of type " + type);
serviceItemModel.insertItem(index, name,
type, background,
backgroundType, newtext);
backgroundType, audio, newtext);
totalServiceItems++;
return;
}
@ -419,7 +419,7 @@ ColumnLayout {
totalServiceItems++;
}
function appendItem(name, type, background, backgroundType, text, itemID) {
function appendItem(name, type, background, backgroundType, text, audio, itemID) {
print("adding: " + name + " of type " + type);
let lyrics;
if (type === "song") {
@ -428,7 +428,7 @@ ColumnLayout {
lyrics = songsqlmodel.getLyricList(itemID);
print(lyrics);
serviceItemModel.addItem(name, type, background,
backgroundType, lyrics);
backgroundType, lyrics, audio);
totalServiceItems++;
return;
};

View file

@ -19,6 +19,7 @@ Item {
property bool dropShadow: false
property url imageSource
property url videoSource
property url audioSource
property int pdfIndex
property string chosenFont: "Quicksand"
property string text: "This is demo text"
@ -69,13 +70,11 @@ Item {
cursorShape: preview ? Qt.ArrowCursor : Qt.BlankCursor
}
/* Controls.ProgressBar { */
/* anchors.top: parent.bottom */
/* width: mpv.width */
/* visible: editMode */
/* value: mpv.position */
/* to: mpv.duration */
/* } */
MpvObject {
id: audio
onFileLoaded: {}
}
}
Timer {
@ -88,6 +87,7 @@ Item {
print("WHY AREN'T YOU PASUING!");
pauseTimer.restart();
}
audio.loadFile()
blackTimer.restart();
}
}