Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# IGSoundEffectsSubsystem.StreamSoundEffectSpecification

00001 00002 00003 00004 00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041

    class StreamSoundEffectSpecification extends SoundEffectSpecification
        native;

    // ============================================================================
    // StreamSoundEffectSpecification
    //
    // A StreamSoundEffectSpecification is an SoundEffectSpecification that handles creation
    // of streaming sounds, and the data the sound designer needs to edit for their creation.
    //
    // ============================================================================

    // Type of stream being played
    enum ESoundStreamType
    {
        ADPCM,          // lower quality, smaller files
        PCM             // higher quality, larger files
    };

    var private config array<string>            Streams;            // List of stream path+filenames of streams to play
    var private config ESoundStreamType         StreamType;         // Type of stream, note, only one type is allowed for all the streams in this schema

    // Hook overrides from SoundEffectSpecification...
    simulated protected event InitHook();

    // Set the flags up for streaming sounds...
    simulated protected event SetNativeFlagsHook()
    {
        NativeFlags += SF_Streaming;

        if (IsSeamlessLoop)
            NativeFlags += SF_Music;
    }

    // Create the soundsets from the list of streams...
    simulated native protected event PopulateSoundsHook();

    cpptext
    {
        // This function registers the streams and precaches any necessary data
        UBOOL UStreamSoundEffectSpecification::RegisterStream(const FString& Filename, INT SampleRate=48000, INT Flags=0  );
    }

Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

Class file time: ne 5.9.2004 16:02:12.000 - Creation time: st 23.5.2018 00:10:47.409 - Created with UnCodeX