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 405 times)

antenna

  • Galactic Citizen
  • ****
  • Posts: 423
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: 71682
  • 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

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 989
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
Win NUC - VENOEN 11Th NUC Mini PC Core i7 1165G7,Dual HDMI 2.0+Mini DP,Windows 11 Mini Desktop Computer,Thunderbolt 4.0,1 Lan, USB-C,Wifi,Bluetooth 5.0,32GB RAM Toshiba MQ04ABF100 ‎500Gb 5400 RPM ‎eSATA HD, Gigabyte GP-GSM2NE3512GNTD 1Tb NVMe SSD, Samsung 870 QVO 8 TB SATA 2.5 Inch SSD (MZ-77Q8T0) in Sabrent Ultra Slim USB 3.0 to 2.5-Inch SATA External Aluminium Hard Drive Enclosure (EC-UK30)

Apple 2020 Mac mini M1 Chip (8GB RAM, 512GB SSD)
Sabrent Thunderbolt 3 to Dual NVMe M.2 SSD Tool-Free Enclosure with Sabrent 2TB Rocket NVMe PCIe M.2 2280 High Performance SSD + Crucial P3 Plus 4TB M.2 PCIe

ET Skins & TrackInfo Plugins - https://englishtiger.uk/index.html
Pages: [1]   Go Up