INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Asynchronous updates and "wow, it just works"  (Read 560 times)

antenna

  • Galactic Citizen
  • ****
  • Posts: 448
Asynchronous updates and "wow, it just works"
« on: September 13, 2021, 07:43:34 pm »

This afternoon I was putting together a playlist for CloudPlay.  I was listening to a preliminary version of the playlist and I noticed that the cover art I had previously used for an album was, ummm, less than optimum.

So while the song was playing, I replaced the cover art for all the tunes on the album that contained the song I was listening to. (note: I have Media Center config'd to place the cover art image into the FLAC files).

So, effectively, I created a conundrum for Media Center --- how does it update the cover art within a FLAC file that is currently being played?

Two processes (playing the file and updating the cover art image within the file) both wanted (exclusive?) access to a single file.

Transactional databases deal with this all the time (been there, done that), but I have to say ... I sat back and smiled when I saw how smoothly it occurred in Media Center.

It Just Worked As Expected.

That's a huge feature with software, and one I encourage.   :D

Thank-you to the software engineers who enabled this smooth functionality.

 





Logged
=========
Vinyl: Shure V15VxMR, Shure VN5MR stylus, VPI Scout turntable
Shellac: Shure M91, Shure N75-3 stylus,  Dual 1218 turntable

Apt Holman preamp (updated), Benchmark Media ADC-1, Benchmark Media DAC-1, Carver TFM-45 power amp (updated), Original Acoustic Research AR-9 speakers (LF surrounds replaced), Sennheiser HD590 headphones

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72439
  • Where did I put my teeth?
Re: Asynchronous updates and "wow, it just works"
« Reply #1 on: September 13, 2021, 09:55:16 pm »

Thank you!
Logged

EnglishTiger

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1084
Re: Asynchronous updates and "wow, it just works"
« Reply #2 on: September 14, 2021, 05:45:12 am »

This afternoon I was putting together a playlist for CloudPlay.  I was listening to a preliminary version of the playlist and I noticed that the cover art I had previously used for an album was, ummm, less than optimum.

So while the song was playing, I replaced the cover art for all the tunes on the album that contained the song I was listening to. (note: I have Media Center config'd to place the cover art image into the FLAC files).

So, effectively, I created a conundrum for Media Center --- how does it update the cover art within a FLAC file that is currently being played?

Two processes (playing the file and updating the cover art image within the file) both wanted (exclusive?) access to a single file.

Transactional databases deal with this all the time (been there, done that), but I have to say ... I sat back and smiled when I saw how smoothly it occurred in Media Center.

It Just Worked As Expected.

That's a huge feature with software, and one I encourage.   :D

Thank-you to the software engineers who enabled this smooth functionality.

For most Audio Track Formats the tags appear before playable content in the file therefore to update any tags while the file/track is playing could have some disastrous consequences' Therefore MC only writes any changes made to those tags after the file has finished playing.

When a user makes any changes/edits to the tags/fields of a track that is being played the message "Saving tag changes (1 remaining") will be displayed in the Status Bar and will remain there until that track has finished playing, or has been stopped from playing; i.e. the point at which MC can safely rewrite the tracks file to reflect any/all changes to it's tags.

Logged
Apple Mac Mini Desktop Computer with M4 Pro chip with 12 core CPU and 16 core GPU: 24GB Unified Memory, 512GB SSD Storage, Gigabit Ethernet, 3 Thunderbolt5 + 2USBC ports.
Pages: [1]   Go Up