mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 10:09:32 +01:00
Make the sample rate queryable as a sysprop
This commit is contained in:
1 parent
cac7a2feed
commit
1b055fd07e
4 files changed
+17
-6
No files matched your search
@@ -50,13 +50,16 @@ private:
|
||||
// TODO: Get rid of this
|
||||
static DSoundState *g_dsound;
|
||||
|
||||
|
||||
inline int RoundDown128(int x) {
|
||||
return x & (~127);
|
||||
}
|
||||
|
||||
int DSound_GetSampleRate() {
|
||||
return g_dsound->GetSampleRate();
|
||||
if (g_dsound) {
|
||||
return g_dsound->GetSampleRate();
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
bool DSoundState::createBuffer() {
|
||||
@@ -246,7 +249,9 @@ int DSoundState::GetCurSample() {
|
||||
}
|
||||
|
||||
void DSound_UpdateSound() {
|
||||
g_dsound->UpdateSound();
|
||||
if (g_dsound) {
|
||||
g_dsound->UpdateSound();
|
||||
}
|
||||
}
|
||||
|
||||
bool DSound_StartSound(HWND window, StreamCallback _callback, int sampleRate) {
|
||||
|
||||
Reference in new issue
Block a user