| 63 | } |
| 64 | |
| 65 | void AudioSource::init(void) |
| 66 | { |
| 67 | volume = 1.0f; |
| 68 | pitch = 1.0f; |
| 69 | looping = false; |
| 70 | source = SOURCE_UNDETERMINED; |
| 71 | state = SOURCE_INITIAL; |
| 72 | buffer_queue.clear(); |
| 73 | callback = nullptr; |
| 74 | callback_data = nullptr; |
| 75 | rewind(); |
| 76 | } |
| 77 | |
| 78 | void AudioSource::rewind(void) |
| 79 | { |