I'm using the code below to get the Left and Right Channel values of an audio 
file: in Classic theLeft and theRight (see below) rightly return different 
values, for instance 60 and 110; but in OS 10.4 the two values are ALWAYS the 
same.

Any suggestion/correction to the following snippet?

Thanks,

--------
the constant kQuickTimeLib is as follows:
Classic: QuickTimeLib
PEF: Apple;Carbon;Multimedia
Mach-O: /System/Library/Frameworks/QuickTime.framework/Quicktime

dim theLeft,theRight as integer
GetSLMInfo(theLeft,theRight)

Sub GetSLMInfo(ByRef leftCh As Integer, ByRef rightCh As Integer)
   Dim Err as Integer
   Dim levelInfo as MemoryBlock
   levelInfo = NewMemoryBlock(4)
   Declare Function MediaGetSoundLevelMeterInfo Lib kQuickLib (mh as Integer, 
levelInfo as Ptr) as Integer
   
   Err=MediaGetSoundLevelMeterInfo(GetMediaHandler(1),levelInfo)
   If Err>=0 then
      leftCh=levelInfo.byte(2)
      rightCh=levelInfo.byte(3)
   end if
End Sub

-- 
Carlo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to