Changeset ffae1d8 in ingen


Ignore:
Timestamp:
10/24/15 23:48:45 (22 months ago)
Author:
David Robillard <d@…>
Branches:
master, groups, nodeless, parallel, parameters, sequencefix
Children:
1a33b80
Parents:
94d2f7c
Message:

Fix audio=>control connections

git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5784 a436a847-0d15-0410-975c-d299462d15a1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server/Buffer.cpp

    r732bfb33 rffae1d8  
    200200    switch (port_type.id()) { 
    201201    case PortType::ID::CONTROL: 
     202    case PortType::ID::CV: 
     203    case PortType::ID::AUDIO: 
    202204        if (_type == _factory.uris().atom_Float) { 
    203205            return &get<LV2_Atom_Float>()->body; 
     206        } else if (_type == _factory.uris().atom_Sound) { 
     207            return (Sample*)_buf; 
    204208        } 
    205209        break; 
    206     case PortType::ID::CV: 
    207     case PortType::ID::AUDIO: 
    208         return (Sample*)_buf; 
    209     default: 
    210         return _buf; 
     210    case PortType::ID::ATOM: 
     211        if (_type != _factory.uris().atom_Sound) { 
     212            return _buf; 
     213        } 
     214    default: break; 
    211215    } 
    212216    return NULL; 
Note: See TracChangeset for help on using the changeset viewer.