audaspace Buffer py method #24618
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#24618
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%%%This patch is basically just a way to get sound data from python into audaspace without having to hit the file system.
Adds;
aud.Buffer(size)
size = buffer size in bytes
Buffer.resize(size, keep=False)
size = new size in bytes
keep = keep old data
Buffer.fill(source)
source = python object that implements the py_buffer protocol
Buffer.size
size in bytes
Also adds a py_buffer interface for:
buf = aud.Buffer(100)
view = memoryview(buf)
And finally...
Overloads the aud.Factory.init() method so you can pass it either a filename or a Buffer object.
%%%
Changed status to: 'Open'
%%%Hmm, I have concerns about thread safety and memory management looking at this patch. So overall I'm sorry, but I'd reject this patch. However, assigning to Campbell, to get his word about it!%%%
%%%Sorry, after talking to Campbell, for the reasons stated, I have to close this. There has to be a better way to access sample data with python that is well designed and gets around the flaws python has.%%%
Changed status from 'Open' to: 'Archived'