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

Peaks #132

Merged
merged 3 commits into from Sep 3, 2015
Merged

Peaks #132

merged 3 commits into from Sep 3, 2015

Conversation

napcode
Copy link
Contributor

@napcode napcode commented Aug 29, 2015

This fixes cases where audiosources could end up using the wrong peakfile:
Mantis issue: 0005745

  • Create a session
  • Drag and drop sourcefile 1 named X from Path A to track Y
  • Drag and drop sourcefile 2 named X from Path B to track Y
  • Save and reopen session
  • Media item for sourcefile 2 will rendered using peakfile from sourcefile 1

Notes:

  • This renders existing peakfiles invalid. New files will be created.
  • Embedded sources do not trigger recreation of peakfiles when project folder has been moved.

Thanks and let me know if there is anything wrong.

@x42
Copy link
Member

x42 commented Aug 30, 2015

Thanks for digging into this.

Looks good in general, but I'd like to re-read and test-run.
Please stay tuned for a few days until ardour-devs return from holidays; most of us are currently traveling.

@napcode
Copy link
Contributor Author

napcode commented Aug 31, 2015

Sure. Please do. I appreciate any feedback.

@x42
Copy link
Member

x42 commented Sep 2, 2015

the 2nd commit hides an overloaded virtual function:

libs/ardour/ardour/audiofilesource.h:43:14: warning: 'ARDOUR::AudioFileSource::find_broken_peakfile' hides overloaded virtual function [-Woverloaded-virtual]
 std::string find_broken_peakfile (const std::string& missing_peak_path,
             ^
libs/ardour/ardour/audiosource.h:140:22: note: hidden overloaded virtual function 'ARDOUR::AudioSource::find_broken_peakfile' declared here: type mismatch at 1st parameter ('std::string' (aka 'basic_string<char>') vs 'const std::string &' (aka 'const basic_string<char> &'))
 virtual std::string find_broken_peakfile (std::string ,
                     ^

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