Changeset 5172


Ignore:
Timestamp:
Sep 9, 2010 3:28:37 PM (4 years ago)
Author:
tboeckel
Message:
  • YAM_UT.c: for all systems except AmigaOS4 the sound playback no longer checks the return value of the STM_PLAY trigger. For AmigaOS3 the return value very much depends on the used sound.dt. For AROS it is always 0 and does in no way reflect success or failure.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r5170 r5172  
    882010-09-09 Thore Böckelmann <tboeckel@gmx.de> 
    99 
     10  * YAM_UT.c: for all systems except AmigaOS4 the sound playback no longer 
     11    checks the return value of the STM_PLAY trigger. For AmigaOS3 the return 
     12    value very much depends on the used sound.dt. For AROS it is always 0 and 
     13    does in no way reflect success or failure. 
    1014  * YAM_TR.c: fixed missing display of final transfer statistics. 
    1115 
  • trunk/src/YAM_UT.c

    r5157 r5172  
    48204820        ULONG error; 
    48214821 
    4822         // Play the sound by calling DoMethod() 
    4823         if((error = DoMethod(soundObject, DTM_TRIGGER, NULL, STM_PLAY, NULL)) == 1) 
     4822        // play the sound 
     4823        #if defined(__amigaos4__) || defined(__MORPHOS__) 
     4824        // AmigaOS4's sound.dt returns 1 in case everything was ok, 0 otherwise 
     4825        error = DoMethod(soundObject, DTM_TRIGGER, NULL, STM_PLAY, NULL); 
     4826        #else 
     4827        // AmigaOS3's return value differs between different versions of sound.dt 
     4828        // Some always return 0, some return a value from the subclass. 
     4829        // AROS' sound.dt definitely always returns 0. I assume the same for MorphOS. 
     4830        // Thus we always signal success here in case creating the object succeeded. 
     4831        DoMethod(soundObject, DTM_TRIGGER, NULL, STM_PLAY, NULL); 
     4832        error = 1; 
     4833        #endif 
     4834 
     4835        if(error == 1) 
    48244836        { 
    48254837          D(DBF_UTIL, "started playback of '%s'", filename); 
     
    48284840          result = TRUE; 
    48294841        } 
     4842 
    48304843        D(DBF_UTIL, "playback of '%s' returned %ld/%ld", filename, error, result); 
    48314844 
Note: See TracChangeset for help on using the changeset viewer.