src/gui/kernel/qsound_mac.mm
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
   172 {
   172 {
   173     NSString *nsFileName = const_cast<NSString *>(reinterpret_cast<const NSString *>(QCFString::toCFStringRef(fileName)));
   173     NSString *nsFileName = const_cast<NSString *>(reinterpret_cast<const NSString *>(QCFString::toCFStringRef(fileName)));
   174     NSSound * const nsSound = [[NSSound alloc] initWithContentsOfFile: nsFileName byReference:YES];
   174     NSSound * const nsSound = [[NSSound alloc] initWithContentsOfFile: nsFileName byReference:YES];
   175     QMacSoundDelegate * const delegate = [[QMacSoundDelegate alloc] initWithQSound:qSound:this];
   175     QMacSoundDelegate * const delegate = [[QMacSoundDelegate alloc] initWithQSound:qSound:this];
   176     [nsSound setDelegate:delegate];
   176     [nsSound setDelegate:delegate];
       
   177     [nsFileName release];
   177     return nsSound;
   178     return nsSound;
   178 }
   179 }
   179 
   180 
   180 QAuServer* qt_new_audio_server()
   181 QAuServer* qt_new_audio_server()
   181 {
   182 {