TORONTO (AP) -- Another frustrating finish left the Miami Heat's playoff hopes hanging by a thread.
An untimely whistle by an official led to a disjointed final sequence in regulation, and the Heat wound up losing 117-109 in overtime to the Toronto Raptors on Sunday.
Miami had the ball in the frontcourt with the score tied 103-103 and 10 seconds left in the fourth quarter. Official Eric Lewis blew the whistle and the Heat players started running into position, but Dion Waiters hadn't yet been given the ball for the inbounds pass.
Confused, the Heat ended up with a broken play at the buzzer. James Johnson missed a jump shot and Bam Adebayo grabbed the rebound and made a layup, but it came right after the buzzer and didn't count.
Heat coach Erik Spoelstra said the explanation he received from the officials for the early whistle included ''nothing that was coherent or makes sense.''
''You blow the whistle when you hand the ball to somebody when they're out of bounds, not before,'' Spoelstra said. ''That got us moving, into motion, before that. The it was just sideways from there.
''It's very disappointing that that play was allowed to continue,'' he said. ''From our vantage point, that was a botched play. You just set it again. That happens a million times during the course of an NBA season.''
Wade, who was supposed to receive the inbounds pass, ended up not touching the ball on Miami's final possession in the fourth quarter.
''All I know is by the time turned to get it back court, Dion still had the ball,'' Wade said. ''It definitely took us out of what we wanted to do.''
Miami lost its season-high fourth in a row.
The Heat could have guaranteed a postseason berth by winning their final three games - they host Philadelphia on Tuesday and close the regular season at Brooklyn the following day.
''We'll need some help,'' Spoelstra said. ''The only thing we control is what we do. We've got to dust this one off, get back to Miami and win the next game.''
Miami was in position to be eliminated later Sunday if Orlando defeated Boston, Brooklyn beat Indiana, and Detroit beat Charlotte.
''Right now, I'm devastated by this loss,'' Wade said.
Wade scored 21 points and Johnson had 18.
Toronto's Danny Green opened the extra session with a 3, then added a layup to put the Raptors up by five, the biggest margin for either team since the start of the fourth quarter.
Pascal Siakam had 23 points and 10 rebounds and Kawhi Leonard scored 22 points for Toronto. Norman Powell matched his season high with 23 points and Green scored seven of his 21 in overtime as the Raptors won their fourth straight over the Heat.
Powell, who shot 7 for 7, said he enjoyed the intensity of the matchup as Toronto prepares for the playoffs.
''These guys are giving us their best performances,'' he said, ''so it takes our game to the next level.''
The crowd of 19,800 rose for a brief ovation when Wade checked in for the first time at 6:18 of the first. The 16-year veteran intends to retire at the end of the season.
Wade scored five points in the opening quarter and Miami led 26-25 after one. The Heat were up 57-50 at halftime.
Miami took a 79-78 lead into the fourth.
Heat: Adebayo led the Heat with 13 rebounds. ... Miami missed eight of 10 shot attempts in overtime. ... The Heat signed F Yante Maten to a full contract. Maten had been on a two-way contract.
Raptors: The Raptors didn't get any points from bench players in the first quarter. ... The Raptors finished 32-9 at home. ... Toronto scored at least 110 points for the eighth straight game, matching a franchise record. The Raptors also did it in February 2018.
Spoelstra also expressed displeasure at the noon tipoff time.
''These 12 o'clock tips, they're not easy for anybody,'' he said. ''Get some sleep, get some rest. These things matter.''
LAST (HOME) DANCE
Wade will be celebrated before his final home game Tuesday night, but said doesn't know what the team has in store for his farewell.
''I know all my family is going to be there,'' he said. ''I'm just looking forward to it, you know, close the chapter.''
SHARING IT AROUND
Toronto is the only NBA team with a different player leading in points (Leonrd) rebounds (Serge Ibaka), assists (Kyle Lowry) and minutes (Siakam).
SHIRT OFF MY BACK
Wade swapped jerseys with Leonard following the game.
Heat: Host Philadelphia on Tuesday.
Raptors: At Minnesota on Tuesday.
More AP NBA: https://apnews.com/NBA and https://twitter.com/AP-Sports