Skip to content

Commit

Permalink
cellAudio fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotekina committed Jan 28, 2017
1 parent df6607e commit 5ee0cea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
7 changes: 0 additions & 7 deletions rpcs3/Emu/Cell/Modules/cellAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
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

float buf2ch[2 * BUFFER_SIZE]{}; // intermediate buffer for 2 channels
Expand Down
12 changes: 11 additions & 1 deletion rpcs3/Emu/Cell/Modules/cellAudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,17 @@ class audio_config final : public named_thread

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()
{
Expand Down

0 comments on commit 5ee0cea

Please sign in to comment.