Changeset 24636
- Timestamp:
- 03/28/08 20:58:21 (8 months ago)
- Location:
- haiku/trunk/src/apps/cortex
- Files:
-
- 3 added
- 10 modified
-
Jamfile (modified) (1 diff)
-
addons/AudioAdapter/AudioAdapterParams.cpp (modified) (1 diff)
-
addons/AudioAdapter/Jamfile (added)
-
addons/Flanger/FlangerNode.cpp (modified) (1 diff)
-
addons/Flanger/Jamfile (added)
-
addons/Jamfile (added)
-
addons/common/AudioBuffer.cpp (modified) (4 diffs)
-
addons/common/AudioFilterNode.cpp (modified) (2 diffs)
-
addons/common/AudioFilterNode.h (modified) (2 diffs)
-
addons/common/IAudioOpHost.h (modified) (1 diff)
-
addons/common/IParameterSet.h (modified) (1 diff)
-
addons/common/RawBuffer.cpp (modified) (2 diffs)
-
addons/common/audio_buffer_tools.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
haiku/trunk/src/apps/cortex/Jamfile
r24373 r24636 17 17 SubInclude HAIKU_TOP src apps cortex ValControl ; 18 18 SubInclude HAIKU_TOP src apps cortex support ; 19 20 SubInclude HAIKU_TOP src apps cortex addons ; -
haiku/trunk/src/apps/cortex/addons/AudioAdapter/AudioAdapterParams.cpp
r20788 r24636 7 7 8 8 status_t 9 _AudioAdapterParams::store( parameterID, const void* data, size_t size)9 _AudioAdapterParams::store(int32 parameterID, const void* data, size_t size) 10 10 { 11 11 if (size < sizeof(int32)) -
haiku/trunk/src/apps/cortex/addons/Flanger/FlangerNode.cpp
r16640 r24636 1450 1450 1451 1451 // interpolate (A) 1452 int32 readFrameHi = (int32)ceil(fReadFrame);1452 uint32 readFrameHi = (int32)ceil(fReadFrame); 1453 1453 delayedFrame.channel[0] *= ((float)readFrameHi - fReadFrame); 1454 1454 if(stereo) -
haiku/trunk/src/apps/cortex/addons/common/AudioBuffer.cpp
r16640 r24636 280 280 } 281 281 282 float fCur ;282 float fCur = 0; 283 283 convert_sample(pCur, fCur, m_format.format); 284 284 … … 333 333 } 334 334 335 float fCur ;335 float fCur = 0; 336 336 convert_sample(pCur, fCur, m_format.format); 337 337 … … 385 385 } 386 386 387 float fCur ;387 float fCur = 0; 388 388 convert_sample(pCur, fCur, m_format.format); 389 389 … … 438 438 } 439 439 440 float fCur ;440 float fCur = 0; 441 441 convert_sample(pCur, fCur, m_format.format); 442 442 -
haiku/trunk/src/apps/cortex/addons/common/AudioFilterNode.cpp
r16640 r24636 596 596 m_input.source = media_source::null; 597 597 598 status_t err = getRequiredInputFormat(m_input.format); 598 #ifdef DEBUG 599 status_t err = 600 #endif 601 getRequiredInputFormat(m_input.format); 599 602 ASSERT(err == B_OK); 600 603 … … 820 823 return; 821 824 } 822 825 823 826 // clean up 824 827 m_output.destination = media_destination::null; 825 826 status_t err = getRequiredOutputFormat(m_output.format); 828 829 #ifdef DEBUG 830 status_t err = 831 #endif 832 getRequiredOutputFormat(m_output.format); 827 833 ASSERT(err == B_OK); 828 834 829 835 updateBufferGroup(); 830 836 -
haiku/trunk/src/apps/cortex/addons/common/AudioFilterNode.h
r16640 r24636 106 106 media_format preferred; 107 107 preferred.type = B_MEDIA_RAW_AUDIO; 108 status_t err = getPreferredInputFormat(preferred); 108 #ifdef DEBUG 109 status_t err = 110 #endif 111 getPreferredInputFormat(preferred); 109 112 ASSERT(err == B_OK); 110 113 _specialize_raw_audio_format(preferred, ioFormat); … … 122 125 media_format preferred; 123 126 preferred.type = B_MEDIA_RAW_AUDIO; 124 status_t err = getPreferredOutputFormat(preferred); 127 #ifdef DEBUG 128 status_t err = 129 #endif 130 getPreferredOutputFormat(preferred); 125 131 ASSERT(err == B_OK); 126 132 -
haiku/trunk/src/apps/cortex/addons/common/IAudioOpHost.h
r16640 r24636 12 12 class IAudioOpHost { 13 13 public: // *** REQUIRED INTERFACE 14 virtual ~IAudioOpHost() { } 14 15 virtual IParameterSet* parameterSet() const =0; 15 16 }; -
haiku/trunk/src/apps/cortex/addons/common/IParameterSet.h
r16640 r24636 11 11 #define __IParameterSet_H__ 12 12 13 #include <ParameterWeb.h> 13 14 #include <SupportDefs.h> 14 15 -
haiku/trunk/src/apps/cortex/addons/common/RawBuffer.cpp
r16640 r24636 20 20 21 21 m_pData(0), 22 m_ allocatedSize(0),22 m_pPool(pFromPool), 23 23 m_frameSize(frameSize), 24 24 m_frames(frames), 25 m_allocatedSize(0), 25 26 m_bCircular(bCircular), 26 m_bOwnData(true) ,27 m_pPool(pFromPool){27 m_bOwnData(true) 28 { 28 29 29 30 if(m_frames) … … 41 42 42 43 m_pData(pData), 43 m_ allocatedSize(0),44 m_pPool(pFromPool), 44 45 m_frameSize(frameSize), 45 46 m_frames(frames), 46 m_ bOwnData(false),47 m_allocatedSize(0), 47 48 m_bCircular(bCircular), 48 m_pPool(pFromPool) {} 49 m_bOwnData(false) 50 {} 49 51 50 52 RawBuffer::RawBuffer(const RawBuffer& clone) { -
haiku/trunk/src/apps/cortex/addons/common/audio_buffer_tools.h
r16640 r24636 137 137 else { 138 138 // two-step cases 139 float fTemp ;139 float fTemp = 0; 140 140 convert_sample(pIn, fTemp, in_audio_format); 141 141 convert_sample(fTemp, pOut, out_audio_format);
