Commit Graph

40 Commits (0.7.1-build-fixes)

Author SHA1 Message Date
Chris Robinson 780e82480d Make the PlayMode and PlayType enums scoped
Also shorten them by putting them in the MWSound namespace
7 years ago
Chris Robinson 617c05f557 Make Sound and Stream sibling types
To avoid being able to accidentally cast a Stream* to a Sound*, or vice-versa.
7 years ago
Chris Robinson 1fe60dd8e2 Replace some shared_ptrs with pointers to deque entries 7 years ago
Allofich 42402976e3 Fixes for building in MSVC 8 years ago
Chris Robinson 2ee3265b66 Use a premade Sound object for the output's playSound functions 9 years ago
Chris Robinson 53718a5ca0 Use a typedef for the sound instance handle 9 years ago
Chris Robinson 2883cdba5c Initialize the Sound object before modifying the pitch variable 9 years ago
Chris Robinson a6db96b2d8 Update sound and stream parameters 9 years ago
Chris Robinson 1ce3e7f5b9 Use a separate type for streams
They're basically the same, but it's to help avoid accidents with passing non-
streaming sounds to the stream functions, or vice-versa.
9 years ago
Chris Robinson 816015d6e6 Avoid inheriting from Sound for sound types 9 years ago
Chris Robinson b5ed2e65f8 Add a method to get the sound stream delay
This helps avoid a lock during the movie player's read method, since it needs
to sync with the current playback position which would otherwise need to get
the movie decoder's current position.
9 years ago
Chris Robinson f3c035907c Rename Sound::update to Sound::applyUpdates 9 years ago
Chris Robinson 8b7587f9a6 Track whether a sound is 3D 9 years ago
Chris Robinson fc912b135f Avoid unnecessarily friending classes 9 years ago
Chris Robinson 495e138907 Load sound loudness and store it with the Sound_Buffer
Still not used for say yet, though
9 years ago
scrawl 4bb3cbf0fb Remove last remains of Ogre 10 years ago
scrawl 7a3bc69df7 Readded sound listener 10 years ago
scrawl 598c0c4ae7 Implement mouth animation for NPCs based on say sound (Fixes #642) 11 years ago
PLkolek f297c21e4d Old door sound fades out on door open/close. Door sound is synchronised to angle on action. 12 years ago
Chris Robinson b4e36d4f31 Add a method to get the volume from the sound type 12 years ago
Chris Robinson dd3e568a00 Set the sound properties at initialization 12 years ago
Chris Robinson 34e36fb852 Add a method to get the time offset from sounds 12 years ago
Marc Zinnschlag 6bd48d12af Issue #107: SoundManager is accessed only through the interface class from now on 13 years ago
Dmitry Marakasov 0e934a52ca Include soundmanager.hpp for Play_Normal enum 13 years ago
Chris Robinson 4944a29b21 Keep track of the sound pitch 13 years ago
Chris Robinson 575474ff69 Pass the mode flags to the sound output play methods 13 years ago
Chris Robinson 4e908aa095 Add a method to set the sound's position 13 years ago
Chris Robinson fad27d99e6 Update the actual sound volume with the position 13 years ago
Chris Robinson 479df78ea1 Update the actual sound position after the listener 13 years ago
Chris Robinson 71d9d7e943 Store the current sound position with the Sound object 13 years ago
Chris Robinson be337ef7cc Return SoundPtr objects from playSound[3D]
Note that each Sound object currently contains "precious" resources even after
the sound is stopped. The reference should be reliquished as soon as it's no
longer needed (the SoundManager will make sure the sound continues to play
until it's finished).
13 years ago
Chris Robinson a3291ef360 Add a sound method to update the volume 13 years ago
Chris Robinson 7008bd2fe1 Store some sound properties in the Sound class 13 years ago
Chris Robinson 5cb90ab704 Add some dummy copy constructors and assignment operators to prevent implicit versions from being used 13 years ago
Chris Robinson 1965b5bc79 Rename some Sound class member functions 13 years ago
Chris Robinson f7ac94d686 Pass the new position to the sound update method 13 years ago
Chris Robinson 5563f583ff Add and implement methods to update tracked sounds on an object 13 years ago
Chris Robinson cac07d0fbf Remove some unnecessary methods 13 years ago
Chris Robinson 2429755bf1 Make the sound's Play method return void 13 years ago
Chris Robinson 637617056b Make a skeleton Sound class 13 years ago