Steve Checkoway
|
95429c20eb
|
Include global.h.
|
2007-03-24 04:38:47 +00:00 |
|
Steve Checkoway
|
ffc4fb00bd
|
Set the hardware sample rate first. There seems to be an issue with setting the stream format's sample rate and then the device's sample rate before initializing the AudioUnit. Once initialized, it handles device format changes. I'm not sure why it doesn't before initialization.
|
2007-03-24 03:29:01 +00:00 |
|
Steve Checkoway
|
fef107f778
|
Doing this one time is enough.
|
2007-03-24 03:15:08 +00:00 |
|
Steve Checkoway
|
3c73e111fd
|
Change set precedence api to return an error message.
|
2007-03-12 03:37:24 +00:00 |
|
Glenn Maynard
|
f75a281c18
|
GetPosition(pSound) -> GetPosition(); one hardware sound position
per driver
|
2006-12-13 09:10:08 +00:00 |
|
Steve Checkoway
|
06bb8c9582
|
Use the float interface.
|
2006-12-11 13:55:05 +00:00 |
|
Glenn Maynard
|
f4c7193c70
|
RageSound_ -> RageSoundDriver_
|
2006-12-07 02:16:51 +00:00 |
|
Glenn Maynard
|
10fa6ceb2e
|
PREFSMAN->m_iSoundPreferredSampleRate == 0 means "do what's right for the hardware". We want a 44.1khz default for most systems, but KS should default to 48khz.
|
2006-12-06 06:26:24 +00:00 |
|
Steve Checkoway
|
b85a488f89
|
Move the sound driver out of arch.cpp.
|
2006-11-18 20:33:27 +00:00 |
|
Steve Checkoway
|
5f9ee5c5bd
|
Set sample rate of the device, if possible.
|
2006-11-17 17:37:51 +00:00 |
|
Steve Checkoway
|
1ea6837c02
|
Header cleanup.
|
2006-11-17 17:13:39 +00:00 |
|
Steve Checkoway
|
e988ea9945
|
Survive device changes, (external) sample rate changes, etc.
|
2006-11-17 16:59:22 +00:00 |
|
Steve Checkoway
|
1f79f25240
|
Fix crash by stopping the audio _on_ the real time thread. This ensures that the current buffer gets played but that it never gets called again. I'm not convinced that the property listeners won't get called but I'm not sure how to handle those sanely just yet, at least in a lockless manner.
This code doesn't handle external format changes very well yet--but then, neither does the other sound driver.
|
2006-11-12 09:04:14 +00:00 |
|
Steve Checkoway
|
78d055dfad
|
Beginning of a sound driver that uses AUHAL instead of dealing with the HAL itself. Apple engineers claim it's easier to use (although, I note there's almost zero documentation) and it correctly handles things like device format changing. It currently works, for the most part (on 10.4 and above).
|
2006-06-18 19:05:40 +00:00 |
|