Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1 | Rev 8 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /* |
1 | /* |
| 2 | Simple DirectMedia Layer |
2 | Simple DirectMedia Layer |
| 3 | Copyright (C) 1997- |
3 | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| 4 | 4 | ||
| 5 | This software is provided 'as-is', without any express or implied |
5 | This software is provided 'as-is', without any express or implied |
| 6 | warranty. In no event will the authors be held liable for any damages |
6 | warranty. In no event will the authors be held liable for any damages |
| 7 | arising from the use of this software. |
7 | arising from the use of this software. |
| 8 | 8 | ||
| Line 138... | Line 138... | ||
| 138 | */ |
138 | */ |
| 139 | /* @{ */ |
139 | /* @{ */ |
| 140 | #define SDL_AUDIO_ALLOW_FREQUENCY_CHANGE 0x00000001 |
140 | #define SDL_AUDIO_ALLOW_FREQUENCY_CHANGE 0x00000001 |
| 141 | #define SDL_AUDIO_ALLOW_FORMAT_CHANGE 0x00000002 |
141 | #define SDL_AUDIO_ALLOW_FORMAT_CHANGE 0x00000002 |
| 142 | #define SDL_AUDIO_ALLOW_CHANNELS_CHANGE 0x00000004 |
142 | #define SDL_AUDIO_ALLOW_CHANNELS_CHANGE 0x00000004 |
| - | 143 | #define SDL_AUDIO_ALLOW_SAMPLES_CHANGE 0x00000008 |
|
| 143 | #define SDL_AUDIO_ALLOW_ANY_CHANGE ( |
144 | #define SDL_AUDIO_ALLOW_ANY_CHANGE (SDL_AUDIO_ALLOW_FREQUENCY_CHANGE|SDL_AUDIO_ALLOW_FORMAT_CHANGE|SDL_AUDIO_ALLOW_CHANNELS_CHANGE|SDL_AUDIO_ALLOW_SAMPLES_CHANGE) |
| 144 | /* @} */ |
145 | /* @} */ |
| 145 | 146 | ||
| 146 | /* @} *//* Audio flags */ |
147 | /* @} *//* Audio flags */ |
| 147 | 148 | ||
| 148 | /** |
149 | /** |
| Line 525... | Line 526... | ||
| 525 | /** |
526 | /** |
| 526 | * Add data to be converted/resampled to the stream |
527 | * Add data to be converted/resampled to the stream |
| 527 | * |
528 | * |
| 528 | * \param stream The stream the audio data is being added to |
529 | * \param stream The stream the audio data is being added to |
| 529 | * \param buf A pointer to the audio data to add |
530 | * \param buf A pointer to the audio data to add |
| 530 | * \param |
531 | * \param len The number of bytes to write to the stream |
| 531 | * \return 0 on success, or -1 on error. |
532 | * \return 0 on success, or -1 on error. |
| 532 | * |
533 | * |
| 533 | * \sa SDL_NewAudioStream |
534 | * \sa SDL_NewAudioStream |
| 534 | * \sa SDL_AudioStreamGet |
535 | * \sa SDL_AudioStreamGet |
| 535 | * \sa SDL_AudioStreamAvailable |
536 | * \sa SDL_AudioStreamAvailable |