|
|
Thread Tools | Display Modes |
03-09-2019, 10:17 AM | #1 |
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,305
|
API: take audio accessor returns 0.0 for mono item + Chan mode: mono (left) (FIXED)
edit:
Fixed (v5.986rc1) === In the licecap I have two mono items with a DC offset (for testing purpose). First one is set to Channel mode: normal, second one is set to Channel mode: Mono (left). I then read out the sample values with a script. As can be seen, for the second item the sample values are 0.0. I assume it should rather give the actual sample values in this case, because when playing a mono item with Channel mode set to Mono (left) there is sound and not silence, or? licecap
__________________
me on Soundcloud (Beats Rap Reggae) Wikiloops - free online jams, check it out my ReaScripts SWS issue tracker Donations Last edited by nofish; 11-18-2019 at 01:46 PM. |
10-24-2019, 07:57 AM | #2 |
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,305
|
bump
This results in wrong Loudness values in SWS when analyzing a mono item which user has set to channel mode: Mono (Left) (which admittedly doesn't seem to make much sense but did happen). |
11-17-2019, 04:14 AM | #3 |
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 5,265
|
The issue is GetAudioAccessorSamples doesn't write any samples to the output buffer when processing mono takes with the channel mode set to either Mono Left or Mono Right. Yet it still returns 1 as usual.
As observed with the test script for this other take audio accessor bug: https://forum.cockos.com/showthread.php?t=226151. It would be useful to have GetAudioAccessorSamples return how many samples it actually wrote to the buffer.
__________________
🎁 Donate (PayPal) | Sponsor (GitHub) | The Endless Journey (Keyboard Ensemble) ReaPack, a package manager for REAPER | SWS 2.14 is now available in ReaPack [new!] Developer tools: Lua profiler | Interactive ReaScript | ReaPack Editor | ReaImGui Last edited by cfillion; 11-17-2019 at 08:14 AM. |
11-17-2019, 09:03 AM | #4 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,117
|
Fixing, thanks! As a workaround for old versions you can always read stereo data for mono items and just look at the first channel...
|
Thread Tools | |
Display Modes | |
|
|