Has this been fixed? If not I think I have a fix (guessing that the fault
comes from plugins that crash if deactivate()'d without being active).
Jakob
mandag den 14. Juli 2008 22:52:22 skrev Jason Schaefer:
> I get a segfault when I select the ladspa plugins: time-> delays->
> tape delay simulation and tap stereo echo
>
> it doesn't happen everytime, but most of the time it does. I am
> selecting while playing.
>
> (I) LadspaFX LadspaFX INIT - /usr/lib/ladspa/tape_delay_1211.so - tapeDelay
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) INIT - /usr/lib/ladspa/tape_delay_1211.so -
> tapeDelay
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) Input control port [Tape speed (inches/sec,
> 1=normal)] min=0, max=10, controlValue=1
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) Input control port [Dry level
> (dB)] min=-90, max=0, controlValue=-90
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) Input control port [Tap 1 distance
> (inches)] min=0, max=4, controlValue=0
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) Input control port [Tap 1 level
> (dB)] min=-90, max=0, controlValue=0
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) Input control port [Tap 2 distance
> (inches)] min=0, max=4, controlValue=1
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) Input control port [Tap 2 level
> (dB)] min=-90, max=0, controlValue=-90
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) Input control port [Tap 3 distance
> (inches)] min=0, max=4, controlValue=2
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) Input control port [Tap 3 level
> (dB)] min=-90, max=0, controlValue=-90
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) Input control port [Tap 4 distance
> (inches)] min=0, max=4, controlValue=3
> (I) static H2Core::LadspaFX* H2Core::LadspaFX::load(const QString&,
> const QString&, long int) Input control port [Tap 4 level
> (dB)] min=-90, max=0, controlValue=-90
> (I) LadspaFX connectAudioPorts [connectAudioPorts]
> (I) LadspaFX activate activate Tape Delay Simulation
> (I) LadspaFXProperties updateControls *** [updateControls] ***
> (I) SongWriter writeSong Saving song
> /home/jason/musprodlap/hydrogen/svn testing/svn209.autosave.h2song
> (I) Effects getLadspaFXGroup [getLadspaFXGroup]
> (I) Effects getLadspaFXGroup [getLadspaFXGroup]
> (I) Effects getLadspaFXGroup [getLadspaFXGroup]
> Segmentation fault
>
>
>
>
>
>
>
>
> <song>
> <version>0.9.4-svn209</version>
> <bpm>100</bpm>
> <volume>0.73</volume>
> <metronomeVolume>0.5</metronomeVolume>
> <name>Untitled Song</name>
> <author>Unknown</author>
> <notes>Empty song.</notes>
> <license>Unknown license</license>
> <loopEnabled>true</loopEnabled>
> <mode>pattern</mode>
> <humanize_time>0</humanize_time>
> <humanize_velocity>0</humanize_velocity>
> <swing_factor>0</swing_factor>
> <instrumentList>
> <instrument>
> <id>0</id>
> <drumkit>GMkit</drumkit>
> <name>Kick</name>
> <volume>1</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>1</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>kick_Dry_b.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>1</id>
> <drumkit>GMkit</drumkit>
> <name>Stick</name>
> <volume>0.69</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>1</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>stick_Woody.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>2</id>
> <drumkit>GMkit</drumkit>
> <name>Snare Jazz</name>
> <volume>1</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>1</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>sn_Jazz_c.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>3</id>
> <drumkit>GMkit</drumkit>
> <name>Hand Clap</name>
> <volume>0.88</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>1</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>clap_Dry_c.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>4</id>
> <drumkit>GMkit</drumkit>
> <name>Snare Rock</name>
> <volume>1</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>1</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>sn_Wet_b.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>5</id>
> <drumkit>GMkit</drumkit>
> <name>Tom Low</name>
> <volume>0.96</volume>
> <isMuted>false</isMuted>
> <pan_L>0.44</pan_L>
> <pan_R>1</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>tom_Rock_lo.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>6</id>
> <drumkit>GMkit</drumkit>
> <name>Closed HH</name>
> <volume>0.89</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>0.78</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>hhc_Dry_a.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>7</id>
> <drumkit>GMkit</drumkit>
> <name>Tom Mid</name>
> <volume>1</volume>
> <isMuted>false</isMuted>
> <pan_L>0.8</pan_L>
> <pan_R>1</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>tom_Rock_mid.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>8</id>
> <drumkit>GMkit</drumkit>
> <name>Pedal HH</name>
> <volume>0.89</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>0.78</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>hhp_Dry_a.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>9</id>
> <drumkit>GMkit</drumkit>
> <name>Tom Hi</name>
> <volume>1</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>0.42</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>tom_Rock_hi.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>10</id>
> <drumkit>GMkit</drumkit>
> <name>Open HH</name>
> <volume>0.8</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>0.84</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>hhc_Rock_b.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>11</id>
> <drumkit>GMkit</drumkit>
> <name>Cowbell</name>
> <volume>0.8</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>1</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>misc_Cowbell.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>12</id>
> <drumkit>GMkit</drumkit>
> <name>Ride Jazz</name>
> <volume>0.8</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>1</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>cym_Jazz.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>13</id>
> <drumkit>GMkit</drumkit>
> <name>Crash</name>
> <volume>0.69</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>0.88</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>cra_Rock_a.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>14</id>
> <drumkit>GMkit</drumkit>
> <name>Ride Rock</name>
> <volume>0.8</volume>
> <isMuted>false</isMuted>
> <pan_L>0.58</pan_L>
> <pan_R>1</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>cym_Rock_b.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> <instrument>
> <id>15</id>
> <drumkit>GMkit</drumkit>
> <name>Crash Jazz</name>
> <volume>0.77</volume>
> <isMuted>false</isMuted>
> <pan_L>1</pan_L>
> <pan_R>0.78</pan_R>
> <gain>1</gain>
> <filterActive>false</filterActive>
> <filterCutoff>1</filterCutoff>
> <filterResonance>0</filterResonance>
> <FX1Level>0</FX1Level>
> <FX2Level>0</FX2Level>
> <FX3Level>0</FX3Level>
> <FX4Level>0</FX4Level>
> <Attack>0</Attack>
> <Decay>0</Decay>
> <Sustain>1</Sustain>
> <Release>1000</Release>
> <randomPitchFactor>0</randomPitchFactor>
> <muteGroup>-1</muteGroup>
> <layer>
> <filename>cra_Jazz.flac</filename>
> <min>0</min>
> <max>1</max>
> <gain>1</gain>
> <pitch>0</pitch>
> </layer>
> </instrument>
> </instrumentList>
> <patternList>
> <pattern>
> <name>Pattern 1</name>
> <size>192</size>
> <noteList>
> <note>
> <position>24</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>48</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>2</instrument>
> </note>
> <note>
> <position>96</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>120</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>144</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>2</instrument>
> </note>
> <note>
> <position>168</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> </noteList>
> </pattern>
> <pattern>
> <name>Pattern 2</name>
> <size>192</size>
> <noteList />
> </pattern>
> <pattern>
> <name>Pattern 3</name>
> <size>192</size>
> <noteList />
> </pattern>
> <pattern>
> <name>Pattern 4</name>
> <size>192</size>
> <noteList />
> </pattern>
> <pattern>
> <name>Pattern 5</name>
> <size>192</size>
> <noteList />
> </pattern>
> <pattern>
> <name>Pattern 6</name>
> <size>192</size>
> <noteList />
> </pattern>
> <pattern>
> <name>Pattern 7</name>
> <size>192</size>
> <noteList />
> </pattern>
> <pattern>
> <name>Pattern 8</name>
> <size>192</size>
> <noteList />
> </pattern>
> <pattern>
> <name>Pattern 9</name>
> <size>192</size>
> <noteList />
> </pattern>
> <pattern>
> <name>Pattern 10</name>
> <size>192</size>
> <noteList />
> </pattern>
> <pattern>
> <name>blah</name>
> <size>192</size>
> <noteList>
> <note>
> <position>0</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>24</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>48</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>2</instrument>
> </note>
> <note>
> <position>48</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>96</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>96</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>120</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>144</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>2</instrument>
> </note>
> <note>
> <position>144</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>156</position>
> <velocity>0.22</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>168</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>168</position>
> <velocity>0.56</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> </noteList>
> </pattern>
> <pattern>
> <name>blah2</name>
> <size>192</size>
> <noteList>
> <note>
> <position>0</position>
> <velocity>0.19</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>24</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>24</position>
> <velocity>0.88</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>36</position>
> <velocity>0.4</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>48</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>2</instrument>
> </note>
> <note>
> <position>48</position>
> <velocity>0.2</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>72</position>
> <velocity>0.86</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>96</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>96</position>
> <velocity>0.17</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>120</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>120</position>
> <velocity>0.79</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>144</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>2</instrument>
> </note>
> <note>
> <position>144</position>
> <velocity>0.17</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> <note>
> <position>168</position>
> <velocity>0.8</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>0</instrument>
> </note>
> <note>
> <position>168</position>
> <velocity>0.85</velocity>
> <pan_L>0.5</pan_L>
> <pan_R>0.5</pan_R>
> <pitch>0</pitch>
> <key>C0</key>
> <length>-1</length>
> <instrument>6</instrument>
> </note>
> </noteList>
> </pattern>
> </patternList>
> <patternSequence>
> <group>
> <patternID>blah2</patternID>
> </group>
> </patternSequence>
> <ladspa>
> <fx>
> <name>no plugin</name>
> <filename>-</filename>
> <enabled>false</enabled>
> <volume>0</volume>
> </fx>
> <fx>
> <name>no plugin</name>
> <filename>-</filename>
> <enabled>false</enabled>
> <volume>0</volume>
> </fx>
> <fx>
> <name>no plugin</name>
> <filename>-</filename>
> <enabled>false</enabled>
> <volume>0</volume>
> </fx>
> <fx>
> <name>no plugin</name>
> <filename>-</filename>
> <enabled>false</enabled>
> <volume>0</volume>
> </fx>
> </ladspa>
> </song>
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Hydrogen-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hydrogen-devel
Index: libs/hydrogen/src/fx/ladspa_fx.cpp
===================================================================
--- libs/hydrogen/src/fx/ladspa_fx.cpp (revision 220)
+++ libs/hydrogen/src/fx/ladspa_fx.cpp (working copy)
@@ -107,6 +107,7 @@
, m_pBuffer_R( NULL )
, m_pluginType( UNDEFINED )
, m_bEnabled( false )
+ , m_bActivated( false )
, m_sLabel( sPluginLabel )
, m_sLibraryPath( sLibraryPath )
, m_pLibrary( NULL )
@@ -401,8 +402,9 @@
void LadspaFX::activate()
{
- if ( m_d->activate ) {
+ if ( m_d->activate /*&& !m_bActivated*/ ) {
INFOLOG( "activate " + getPluginName() );
+ m_bActivated = true;
m_d->activate( m_handle );
}
}
@@ -410,8 +412,9 @@
void LadspaFX::deactivate()
{
- if ( m_d->deactivate ) {
+ if ( m_d->deactivate && m_bActivated ) {
INFOLOG( "deactivate " + getPluginName() );
+ m_bActivated = false;
m_d->deactivate( m_handle );
}
}
Index: libs/hydrogen/include/hydrogen/fx/LadspaFX.h
===================================================================
--- libs/hydrogen/include/hydrogen/fx/LadspaFX.h (revision 220)
+++ libs/hydrogen/include/hydrogen/fx/LadspaFX.h (working copy)
@@ -159,6 +159,7 @@
private:
bool m_pluginType;
bool m_bEnabled;
+ bool m_bActivated; // Guard against plugins that can't be deactivated before being activated (
QString m_sLabel;
QString m_sName;
QString m_sLibraryPath;
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel