Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading GRF of GRFX file should preserve 'use clock' status of graph #268

Closed
mikecopperwhite opened this issue May 7, 2015 · 4 comments
Closed
Assignees

Comments

@mikecopperwhite
Copy link
Collaborator

To reproduce:

  • Create any playback graph by open a supported media file containing audio
  • Disable play use clock
  • Save as GRF or GRFX file
  • Reload from saved GRF or GRFX file

Expected: Use clock is disabled
Actual: Use clock is enabled.

GraphEdit remembers this when the graph is reloaded from a GRF file. Graph Studio Next should do the same.

I suspect our post loading processing is overriding the clock used by the graph.

mikecopperwhite added a commit that referenced this issue Jun 29, 2015
…e 'Use Clock' status when filters are refreshed
@mikecopperwhite mikecopperwhite self-assigned this Jun 29, 2015
@roman380
Copy link
Collaborator

Well we might also like to have persistent setting for use filter X as clock as well... I don't think it's used often though, and I don't think GRF can hold that, but GRFX can easily reuse new clock XML value which is empty/"none" now and can also have index of specific filter.

@mikecopperwhite
Copy link
Collaborator Author

I think we've made conflicting changes. The clock setting should ideally occur in the GRFX specific code.

The default GRF loading sets the clock itself.

The internal GRF parser should do the same. The GRF does seem to contain the filter index of the selected clock - see where clock_index is set at the end of GRF_File::Load. clock_index is not currently used.

@roman380
Copy link
Collaborator

Regarding GRF, the default implementation of persistence does not affect clock, or no? If it does not modify clock then we can only add it as a side setting in the structured document file. I would perhaps rather not bother with it, especially that GRFX is already a superior option (to me it looks as obvious superior option because I can edit the file and modify/fix paths contained there).

I saw the conflicting changes but I think I merged them? Now I re-checked and I think this still needs an update.

I also see that clock_index exists but is not used (is to be used if/when we implement clock as specific filter).

@mikecopperwhite
Copy link
Collaborator Author

Default GRF persistence does set the clock to the same filter as when saved
though I'm not sure how it represents the distinction between system clock
and no clock. Need to test further but may not get a chance until next week.

Great to have the GRF X support in.

GRF files are not entirely dead. The internal graph parser will prompt to fix up paths at load time. Also very easy to save and load GRF files from other code.

On 30 Jun 2015 10:48, "Roman R." [email protected] wrote:

Regarding GRF, the default implementation of persistence does not affect
clock, or no? If it does not modify clock then we can only add it as a side
setting in the structured document file. I would perhaps rather not bother
with it, especially that GRFX is already a superior option (to me it looks
as obvious superior option because I can edit the file and modify/fix paths
contained there).

I saw the conflicting changes but I think I merged them? Now I re-checked
and I think this still needs an update.

I also see that clock_index exists but is not used (is to be used if/when
we implement clock as specific filter).


Reply to this email directly or view it on GitHub
#268 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants