Old 02-01-2015, 07:16 PM   #1
Argitoth
Human being with feelings
 
Argitoth's Avatar
 
Join Date: Feb 2008
Location: Mesa, AZ
Posts: 2,057
Default Where does REAPER keep track of items offline?

Here's an item state chunk which is offline, and I don't see anything about it being offline. So where does REAPER save this information? Please don't say RAM.

Code:
    <ITEM
      POSITION 0
      SNAPOFFS 0
      LENGTH 2.12489795918367
      LOOP 0
      ALLTAKES 0
      FADEIN 0 0 0 0 0 0
      FADEOUT 0 0 0 0 0 0
      MUTE 0
      SEL 1
      IGUID {49846AAC-5065-41D3-BAD2-E0C63644EE12}
      IID 1
      NAME TablaTarang_Mic3.A#.bass.Tun_1_3.wav
      VOLPAN 1 0 1 -1
      SOFFS 0
      PLAYRATE 1 1 0 -1 0 0.0025
      CHANMODE 0
      GUID {9A0B05E3-B7E1-41BE-8618-E250B32817E4}
      <SOURCE WAVE
        FILE "Z:\Crypto Cipher\TablaTarang\kontakt assets\samples\Tun\Mic3\TablaTarang_Mic3.A#.bass.Tun_1_3.wav"
      >
    >
__________________
Soundemote - Home of the chaosfly and pretty oscilloscope.
MyReaperPlugin - Easy-to-use cross-platform C++ REAPER extension template
Argitoth is offline   Reply With Quote
Old 02-02-2015, 03:08 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Argitoth View Post
Here's an item state chunk which is offline, and I don't see anything about it being offline. So where does REAPER save this information? Please don't say RAM.
It indeed seems to be stored only in RAM. Saving a project that has offlined media and then loading it back, brings the media back online. So it seems the offline state isn't serialized and deserialized. You can see this failing in the undo history too. Offlining the media is recorded as an undo entry, but the state isn't really handled correctly.

Is there some particular reason you are interested in this state data? (I think you can access it from C++ extensions by examining the PCM_source's IsAvailable() state. There's no ReaScript compatible function for that in Reaper itself.)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 02-02-2015, 07:35 AM   #3
Argitoth
Human being with feelings
 
Argitoth's Avatar
 
Join Date: Feb 2008
Location: Mesa, AZ
Posts: 2,057
Default

Quote:
Originally Posted by Xenakios View Post
Is there some particular reason you are interested in this state data?
BECAUSE I WANT TO SET ITEMS OFFLINE AND HAVE THEM ACTUALLY STAY OFFLINE!

why cockos... why.
__________________
Soundemote - Home of the chaosfly and pretty oscilloscope.
MyReaperPlugin - Easy-to-use cross-platform C++ REAPER extension template
Argitoth is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.