mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
cellAudio fix
This commit is contained in:
parent
df6607e236
commit
5ee0cea672
2 changed files with 11 additions and 8 deletions
|
@ -18,13 +18,6 @@ cfg::bool_entry g_cfg_audio_convert_to_u16(cfg::root.audio, "Convert to 16 bit")
|
||||||
|
|
||||||
void audio_config::on_task()
|
void audio_config::on_task()
|
||||||
{
|
{
|
||||||
for (u32 i = 0; i < AUDIO_PORT_COUNT; i++)
|
|
||||||
{
|
|
||||||
ports[i].number = i;
|
|
||||||
ports[i].addr = m_buffer + AUDIO_PORT_OFFSET * i;
|
|
||||||
ports[i].index = m_indexes + i;
|
|
||||||
}
|
|
||||||
|
|
||||||
AudioDumper m_dump(g_cfg_audio_dump_to_file ? 2 : 0); // Init AudioDumper for 2 channels if enabled
|
AudioDumper m_dump(g_cfg_audio_dump_to_file ? 2 : 0); // Init AudioDumper for 2 channels if enabled
|
||||||
|
|
||||||
float buf2ch[2 * BUFFER_SIZE]{}; // intermediate buffer for 2 channels
|
float buf2ch[2 * BUFFER_SIZE]{}; // intermediate buffer for 2 channels
|
||||||
|
|
|
@ -137,7 +137,17 @@ public:
|
||||||
|
|
||||||
std::vector<u64> keys;
|
std::vector<u64> keys;
|
||||||
|
|
||||||
~audio_config() noexcept = default;
|
audio_config()
|
||||||
|
{
|
||||||
|
for (u32 i = 0; i < AUDIO_PORT_COUNT; i++)
|
||||||
|
{
|
||||||
|
ports[i].number = i;
|
||||||
|
ports[i].addr = m_buffer + AUDIO_PORT_OFFSET * i;
|
||||||
|
ports[i].index = m_indexes + i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
~audio_config() = default;
|
||||||
|
|
||||||
audio_port* open_port()
|
audio_port* open_port()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue