Changeset 35

Show
Ignore:
Timestamp:
03/07/07 13:51:05 (2 years ago)
Author:
gbooker
Message:

Fixed incorrect sample rate importing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/AC3MovieImport/AC3MovieImport.c

    r30 r35  
    4848 
    4949#include "a52.h" 
    50  
    51 #define kTimeScale (48000) 
    5250 
    5351// Component globals 
     
    402400                        audioMedia = NewTrackMedia(audioTrack,          // Specifies the track for this operation 
    403401                                                                           SoundMediaType,      // Type of media to create 
    404                                                                            kTimeScale,                // Set the time scale, this defines the media's time coordinate system 
     402                                                                           sample_rate,               // Set the time scale, this defines the media's time coordinate system 
    405403                                                                           dataRef,                     // Specifies the data reference 
    406404                                                                           dataRefType);        // Specifies the type of data reference 
     
    466464                        memset(&absd, 0, sizeof(absd)); 
    467465                        absd.mFormatID = kAudioFormatAC3; 
    468                         absd.mSampleRate = 48000
     466                        absd.mSampleRate = sample_rate
    469467                        if(flags & A52_LFE) 
    470468                                channels++;